robustcov 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. robustcov-0.0.1/.github/workflows/docs.yml +34 -0
  2. robustcov-0.0.1/.github/workflows/tests.yml +40 -0
  3. robustcov-0.0.1/.github/workflows/wheels.yml +135 -0
  4. robustcov-0.0.1/.gitignore +82 -0
  5. robustcov-0.0.1/CHANGELOG.md +16 -0
  6. robustcov-0.0.1/CITATION.cff +13 -0
  7. robustcov-0.0.1/CMakeLists.txt +24 -0
  8. robustcov-0.0.1/CONTRIBUTING.md +24 -0
  9. robustcov-0.0.1/LICENSE +201 -0
  10. robustcov-0.0.1/MANIFEST.in +33 -0
  11. robustcov-0.0.1/NOTICE +8 -0
  12. robustcov-0.0.1/PKG-INFO +371 -0
  13. robustcov-0.0.1/README.md +315 -0
  14. robustcov-0.0.1/RELEASE.md +44 -0
  15. robustcov-0.0.1/benchmarks/README.md +86 -0
  16. robustcov-0.0.1/benchmarks/accuracy_vs_contamination.py +127 -0
  17. robustcov-0.0.1/benchmarks/anomaly_detection_baselines.py +151 -0
  18. robustcov-0.0.1/benchmarks/auto_scatter_small_sample.py +78 -0
  19. robustcov-0.0.1/benchmarks/benchmark_summary.py +170 -0
  20. robustcov-0.0.1/benchmarks/fastmcd_quality_speed_tradeoff.py +101 -0
  21. robustcov-0.0.1/benchmarks/hard_contamination_scenarios.py +145 -0
  22. robustcov-0.0.1/benchmarks/make_report.py +257 -0
  23. robustcov-0.0.1/benchmarks/openmp_scaling.py +80 -0
  24. robustcov-0.0.1/benchmarks/sklearn_comparison_grid.py +106 -0
  25. robustcov-0.0.1/benchmarks/small_sample_heavy_tail.py +141 -0
  26. robustcov-0.0.1/benchmarks/speed_estimators.py +98 -0
  27. robustcov-0.0.1/benchmarks/support_diagnostics.py +116 -0
  28. robustcov-0.0.1/conda/README.md +21 -0
  29. robustcov-0.0.1/conda/recipe/meta.yaml +58 -0
  30. robustcov-0.0.1/docs/API_STABILITY.md +26 -0
  31. robustcov-0.0.1/docs/ESTIMATOR_GUIDE.md +48 -0
  32. robustcov-0.0.1/docs/_static/benchmarks/anomaly_baselines.csv +7 -0
  33. robustcov-0.0.1/docs/_static/benchmarks/anomaly_baselines.png +0 -0
  34. robustcov-0.0.1/docs/_static/benchmarks/hard_scenarios.csv +7 -0
  35. robustcov-0.0.1/docs/_static/benchmarks/openmp_scaling.csv +7 -0
  36. robustcov-0.0.1/docs/_static/benchmarks/openmp_scaling.png +0 -0
  37. robustcov-0.0.1/docs/_static/benchmarks/small_sample_rank.png +0 -0
  38. robustcov-0.0.1/docs/_static/benchmarks/small_sample_summary.csv +10 -0
  39. robustcov-0.0.1/docs/_static/benchmarks/speed.csv +6 -0
  40. robustcov-0.0.1/docs/_static/benchmarks/speed.png +0 -0
  41. robustcov-0.0.1/docs/_static/custom.css +56 -0
  42. robustcov-0.0.1/docs/_static/external_results/credit_card_fraud/f1.png +0 -0
  43. robustcov-0.0.1/docs/_static/external_results/credit_card_fraud/metrics.csv +5 -0
  44. robustcov-0.0.1/docs/_static/external_results/credit_card_fraud/output.txt +6 -0
  45. robustcov-0.0.1/docs/_static/external_results/credit_card_fraud/pr_auc.png +0 -0
  46. robustcov-0.0.1/docs/_static/external_results/credit_card_fraud/roc_auc.png +0 -0
  47. robustcov-0.0.1/docs/_static/external_results/finance_market_stress/metrics.csv +2 -0
  48. robustcov-0.0.1/docs/_static/external_results/finance_market_stress/output.txt +16 -0
  49. robustcov-0.0.1/docs/_static/external_results/finance_market_stress/robust_distance_profile.png +0 -0
  50. robustcov-0.0.1/docs/_static/external_results/finance_market_stress/stress_days.csv +11 -0
  51. robustcov-0.0.1/docs/_static/external_results/finance_market_stress/top_stress_days.png +0 -0
  52. robustcov-0.0.1/docs/_static/external_results/finance_rolling_window/metrics.csv +2 -0
  53. robustcov-0.0.1/docs/_static/external_results/finance_rolling_window/output.txt +16 -0
  54. robustcov-0.0.1/docs/_static/external_results/finance_rolling_window/rolling_distance_profile.png +0 -0
  55. robustcov-0.0.1/docs/_static/external_results/finance_rolling_window/stress_windows.csv +11 -0
  56. robustcov-0.0.1/docs/_static/external_results/finance_rolling_window/top_stress_windows.png +0 -0
  57. robustcov-0.0.1/docs/_static/external_results/ieee_cis_fraud/f1.png +0 -0
  58. robustcov-0.0.1/docs/_static/external_results/ieee_cis_fraud/metrics.csv +5 -0
  59. robustcov-0.0.1/docs/_static/external_results/ieee_cis_fraud/output.txt +7 -0
  60. robustcov-0.0.1/docs/_static/external_results/ieee_cis_fraud/pr_auc.png +0 -0
  61. robustcov-0.0.1/docs/_static/external_results/ieee_cis_fraud/roc_auc.png +0 -0
  62. robustcov-0.0.1/docs/_static/external_results/ieee_cis_fraud/runtime.png +0 -0
  63. robustcov-0.0.1/docs/_static/external_results/medical_screening/f1.png +0 -0
  64. robustcov-0.0.1/docs/_static/external_results/medical_screening/metrics.csv +5 -0
  65. robustcov-0.0.1/docs/_static/external_results/medical_screening/output.txt +7 -0
  66. robustcov-0.0.1/docs/_static/external_results/medical_screening/pr_auc.png +0 -0
  67. robustcov-0.0.1/docs/_static/external_results/medical_screening/roc_auc.png +0 -0
  68. robustcov-0.0.1/docs/_static/external_results/medical_screening/runtime.png +0 -0
  69. robustcov-0.0.1/docs/_static/external_results/predictive_maintenance/f1.png +0 -0
  70. robustcov-0.0.1/docs/_static/external_results/predictive_maintenance/metrics.csv +5 -0
  71. robustcov-0.0.1/docs/_static/external_results/predictive_maintenance/output.txt +7 -0
  72. robustcov-0.0.1/docs/_static/external_results/predictive_maintenance/pr_auc.png +0 -0
  73. robustcov-0.0.1/docs/_static/external_results/predictive_maintenance/roc_auc.png +0 -0
  74. robustcov-0.0.1/docs/_static/external_results/predictive_maintenance/runtime.png +0 -0
  75. robustcov-0.0.1/docs/_static/external_results/predictive_maintenance/seconds.png +0 -0
  76. robustcov-0.0.1/docs/_static/external_results/registry/external_results.csv +4 -0
  77. robustcov-0.0.1/docs/_static/external_results/registry/external_results.html +42 -0
  78. robustcov-0.0.1/docs/_static/gallery/biomedical_signal/distance_profile.png +0 -0
  79. robustcov-0.0.1/docs/_static/gallery/biomedical_signal/manifest.txt +1 -0
  80. robustcov-0.0.1/docs/_static/gallery/biomedical_signal/output.txt +4 -0
  81. robustcov-0.0.1/docs/_static/gallery/breast_cancer_screening/baseline_f1.png +0 -0
  82. robustcov-0.0.1/docs/_static/gallery/breast_cancer_screening/distance_panel.png +0 -0
  83. robustcov-0.0.1/docs/_static/gallery/breast_cancer_screening/manifest.txt +3 -0
  84. robustcov-0.0.1/docs/_static/gallery/breast_cancer_screening/output.txt +10 -0
  85. robustcov-0.0.1/docs/_static/gallery/breast_cancer_screening/score_profile.png +0 -0
  86. robustcov-0.0.1/docs/_static/gallery/digits_one_class/baseline_f1.png +0 -0
  87. robustcov-0.0.1/docs/_static/gallery/digits_one_class/distance_panel.png +0 -0
  88. robustcov-0.0.1/docs/_static/gallery/digits_one_class/manifest.txt +3 -0
  89. robustcov-0.0.1/docs/_static/gallery/digits_one_class/output.txt +10 -0
  90. robustcov-0.0.1/docs/_static/gallery/digits_one_class/score_profile.png +0 -0
  91. robustcov-0.0.1/docs/_static/gallery/finance_risk/covariance.png +0 -0
  92. robustcov-0.0.1/docs/_static/gallery/finance_risk/distance_panel.png +0 -0
  93. robustcov-0.0.1/docs/_static/gallery/finance_risk/manifest.txt +2 -0
  94. robustcov-0.0.1/docs/_static/gallery/finance_risk/output.txt +8 -0
  95. robustcov-0.0.1/docs/_static/gallery/fraud_screening/distance_panel.png +0 -0
  96. robustcov-0.0.1/docs/_static/gallery/fraud_screening/distance_profile.png +0 -0
  97. robustcov-0.0.1/docs/_static/gallery/fraud_screening/manifest.txt +2 -0
  98. robustcov-0.0.1/docs/_static/gallery/fraud_screening/output.txt +4 -0
  99. robustcov-0.0.1/docs/_static/gallery/image_feature_anomaly/distance_panel.png +0 -0
  100. robustcov-0.0.1/docs/_static/gallery/image_feature_anomaly/manifest.txt +1 -0
  101. robustcov-0.0.1/docs/_static/gallery/image_feature_anomaly/output.txt +5 -0
  102. robustcov-0.0.1/docs/_static/gallery/maintenance_monitoring/distance_panel.png +0 -0
  103. robustcov-0.0.1/docs/_static/gallery/maintenance_monitoring/manifest.txt +2 -0
  104. robustcov-0.0.1/docs/_static/gallery/maintenance_monitoring/output.txt +4 -0
  105. robustcov-0.0.1/docs/_static/gallery/maintenance_monitoring/time_profile.png +0 -0
  106. robustcov-0.0.1/docs/_static/gallery/ml_preprocessing/accuracy_comparison.png +0 -0
  107. robustcov-0.0.1/docs/_static/gallery/ml_preprocessing/distance_profile.png +0 -0
  108. robustcov-0.0.1/docs/_static/gallery/ml_preprocessing/manifest.txt +2 -0
  109. robustcov-0.0.1/docs/_static/gallery/ml_preprocessing/output.txt +6 -0
  110. robustcov-0.0.1/docs/_static/gallery/multimodal_anomaly/cluster_distance_panel.png +0 -0
  111. robustcov-0.0.1/docs/_static/gallery/multimodal_anomaly/global_distance_profile.png +0 -0
  112. robustcov-0.0.1/docs/_static/gallery/multimodal_anomaly/manifest.txt +3 -0
  113. robustcov-0.0.1/docs/_static/gallery/multimodal_anomaly/metrics.csv +3 -0
  114. robustcov-0.0.1/docs/_static/gallery/multimodal_anomaly/output.txt +9 -0
  115. robustcov-0.0.1/docs/_static/gallery/network_traffic/distance_panel.png +0 -0
  116. robustcov-0.0.1/docs/_static/gallery/network_traffic/manifest.txt +1 -0
  117. robustcov-0.0.1/docs/_static/gallery/network_traffic/output.txt +4 -0
  118. robustcov-0.0.1/docs/_static/gallery/portfolio_stress/covariance.png +0 -0
  119. robustcov-0.0.1/docs/_static/gallery/portfolio_stress/distance_panel.png +0 -0
  120. robustcov-0.0.1/docs/_static/gallery/portfolio_stress/manifest.txt +2 -0
  121. robustcov-0.0.1/docs/_static/gallery/portfolio_stress/output.txt +5 -0
  122. robustcov-0.0.1/docs/_static/gallery/quality_control/distance_profile.png +0 -0
  123. robustcov-0.0.1/docs/_static/gallery/quality_control/manifest.txt +2 -0
  124. robustcov-0.0.1/docs/_static/gallery/quality_control/output.txt +12 -0
  125. robustcov-0.0.1/docs/_static/gallery/quality_control/support_ellipse.png +0 -0
  126. robustcov-0.0.1/docs/_static/gallery/sensor_anomaly/distance_panel.png +0 -0
  127. robustcov-0.0.1/docs/_static/gallery/sensor_anomaly/distance_profile.png +0 -0
  128. robustcov-0.0.1/docs/_static/gallery/sensor_anomaly/manifest.txt +2 -0
  129. robustcov-0.0.1/docs/_static/gallery/sensor_anomaly/output.txt +4 -0
  130. robustcov-0.0.1/docs/_static/gallery/summary.csv +15 -0
  131. robustcov-0.0.1/docs/_static/gallery/text_embedding_outliers/distance_panel.png +0 -0
  132. robustcov-0.0.1/docs/_static/gallery/text_embedding_outliers/manifest.txt +1 -0
  133. robustcov-0.0.1/docs/_static/gallery/text_embedding_outliers/output.txt +4 -0
  134. robustcov-0.0.1/docs/_static/gallery/wine_class_screening/baseline_f1.png +0 -0
  135. robustcov-0.0.1/docs/_static/gallery/wine_class_screening/distance_panel.png +0 -0
  136. robustcov-0.0.1/docs/_static/gallery/wine_class_screening/manifest.txt +3 -0
  137. robustcov-0.0.1/docs/_static/gallery/wine_class_screening/output.txt +10 -0
  138. robustcov-0.0.1/docs/_static/gallery/wine_class_screening/score_profile.png +0 -0
  139. robustcov-0.0.1/docs/algorithms.rst +304 -0
  140. robustcov-0.0.1/docs/api.rst +51 -0
  141. robustcov-0.0.1/docs/api_stability.rst +26 -0
  142. robustcov-0.0.1/docs/benchmark_gallery.rst +95 -0
  143. robustcov-0.0.1/docs/benchmark_report.rst +10 -0
  144. robustcov-0.0.1/docs/benchmarks/anomaly_baselines.rst +63 -0
  145. robustcov-0.0.1/docs/benchmarks/hard_contamination.rst +44 -0
  146. robustcov-0.0.1/docs/benchmarks/openmp_scaling.rst +60 -0
  147. robustcov-0.0.1/docs/benchmarks/small_sample_heavy_tail.rst +57 -0
  148. robustcov-0.0.1/docs/benchmarks/speed_comparison.rst +46 -0
  149. robustcov-0.0.1/docs/benchmarks.rst +7 -0
  150. robustcov-0.0.1/docs/conf.py +27 -0
  151. robustcov-0.0.1/docs/diagnostics.rst +41 -0
  152. robustcov-0.0.1/docs/estimator_guide.rst +44 -0
  153. robustcov-0.0.1/docs/external_demo_workflow.rst +74 -0
  154. robustcov-0.0.1/docs/external_results/credit_card_fraud.rst +112 -0
  155. robustcov-0.0.1/docs/external_results/finance_market_stress.rst +117 -0
  156. robustcov-0.0.1/docs/external_results/finance_rolling_window.rst +129 -0
  157. robustcov-0.0.1/docs/external_results/ieee_cis_fraud.rst +97 -0
  158. robustcov-0.0.1/docs/external_results/medical_screening.rst +94 -0
  159. robustcov-0.0.1/docs/external_results/predictive_maintenance.rst +83 -0
  160. robustcov-0.0.1/docs/external_results_gallery.rst +154 -0
  161. robustcov-0.0.1/docs/faq.rst +37 -0
  162. robustcov-0.0.1/docs/gallery/biomedical_signal.rst +50 -0
  163. robustcov-0.0.1/docs/gallery/breast_cancer_screening.rst +60 -0
  164. robustcov-0.0.1/docs/gallery/digits_one_class.rst +60 -0
  165. robustcov-0.0.1/docs/gallery/finance_risk.rst +55 -0
  166. robustcov-0.0.1/docs/gallery/fraud_screening.rst +55 -0
  167. robustcov-0.0.1/docs/gallery/image_feature_anomaly.rst +50 -0
  168. robustcov-0.0.1/docs/gallery/maintenance_monitoring.rst +55 -0
  169. robustcov-0.0.1/docs/gallery/ml_preprocessing.rst +55 -0
  170. robustcov-0.0.1/docs/gallery/multimodal_anomaly.rst +55 -0
  171. robustcov-0.0.1/docs/gallery/network_traffic.rst +50 -0
  172. robustcov-0.0.1/docs/gallery/portfolio_stress.rst +55 -0
  173. robustcov-0.0.1/docs/gallery/quality_control.rst +55 -0
  174. robustcov-0.0.1/docs/gallery/sensor_anomaly.rst +55 -0
  175. robustcov-0.0.1/docs/gallery/text_embedding_outliers.rst +50 -0
  176. robustcov-0.0.1/docs/gallery/wine_class_screening.rst +60 -0
  177. robustcov-0.0.1/docs/gallery_topics/biomedical_images_embeddings.rst +39 -0
  178. robustcov-0.0.1/docs/gallery_topics/finance_and_risk.rst +33 -0
  179. robustcov-0.0.1/docs/gallery_topics/fraud_security_and_networks.rst +33 -0
  180. robustcov-0.0.1/docs/gallery_topics/ml_preprocessing.rst +27 -0
  181. robustcov-0.0.1/docs/gallery_topics/real_ml_datasets.rst +46 -0
  182. robustcov-0.0.1/docs/gallery_topics/sensors_industrial_quality.rst +39 -0
  183. robustcov-0.0.1/docs/generate_gallery_assets.py +107 -0
  184. robustcov-0.0.1/docs/index.rst +74 -0
  185. robustcov-0.0.1/docs/installation.rst +58 -0
  186. robustcov-0.0.1/docs/kaggle_examples.rst +177 -0
  187. robustcov-0.0.1/docs/kaggle_roadmap.rst +59 -0
  188. robustcov-0.0.1/docs/notebooks.rst +24 -0
  189. robustcov-0.0.1/docs/openmp.rst +98 -0
  190. robustcov-0.0.1/docs/quickstart.rst +38 -0
  191. robustcov-0.0.1/docs/references.rst +61 -0
  192. robustcov-0.0.1/docs/release_readiness.rst +10 -0
  193. robustcov-0.0.1/docs/robust_statistics_background.rst +204 -0
  194. robustcov-0.0.1/docs/use_case_gallery.rst +153 -0
  195. robustcov-0.0.1/docs/use_cases.rst +6 -0
  196. robustcov-0.0.1/examples/README.md +66 -0
  197. robustcov-0.0.1/examples/_ml_use_case_utils.py +147 -0
  198. robustcov-0.0.1/examples/adaptive_contamination_fastmcd.py +33 -0
  199. robustcov-0.0.1/examples/anomaly_detection.py +55 -0
  200. robustcov-0.0.1/examples/auto_robust_scatter.py +28 -0
  201. robustcov-0.0.1/examples/auto_selection_stability.py +29 -0
  202. robustcov-0.0.1/examples/covariance_contamination_study.py +53 -0
  203. robustcov-0.0.1/examples/diagnostic_report_demo.py +21 -0
  204. robustcov-0.0.1/examples/estimator_selection_guide.py +26 -0
  205. robustcov-0.0.1/examples/missing_values_stability.py +47 -0
  206. robustcov-0.0.1/examples/plot_anomaly_baselines.py +41 -0
  207. robustcov-0.0.1/examples/plot_benchmark_summary.py +27 -0
  208. robustcov-0.0.1/examples/plot_contamination_accuracy.py +27 -0
  209. robustcov-0.0.1/examples/plot_openmp_scaling.py +50 -0
  210. robustcov-0.0.1/examples/plot_speed_accuracy_pareto.py +19 -0
  211. robustcov-0.0.1/examples/plot_speed_comparison.py +26 -0
  212. robustcov-0.0.1/examples/quickstart.py +22 -0
  213. robustcov-0.0.1/examples/real_ml_anomaly.py +72 -0
  214. robustcov-0.0.1/examples/real_ml_one_class_digits.py +96 -0
  215. robustcov-0.0.1/examples/robust_distance_profile_demo.py +34 -0
  216. robustcov-0.0.1/examples/run_use_case_gallery.py +87 -0
  217. robustcov-0.0.1/examples/small_sample_heavy_tail.py +38 -0
  218. robustcov-0.0.1/examples/use_case_biomedical_signal.py +58 -0
  219. robustcov-0.0.1/examples/use_case_breast_cancer_screening.py +41 -0
  220. robustcov-0.0.1/examples/use_case_digits_one_class_baselines.py +47 -0
  221. robustcov-0.0.1/examples/use_case_finance_risk.py +56 -0
  222. robustcov-0.0.1/examples/use_case_fraud_screening.py +54 -0
  223. robustcov-0.0.1/examples/use_case_image_feature_anomaly.py +58 -0
  224. robustcov-0.0.1/examples/use_case_maintenance_monitoring.py +50 -0
  225. robustcov-0.0.1/examples/use_case_ml_preprocessing.py +70 -0
  226. robustcov-0.0.1/examples/use_case_multimodal_anomaly.py +93 -0
  227. robustcov-0.0.1/examples/use_case_network_traffic.py +61 -0
  228. robustcov-0.0.1/examples/use_case_portfolio_stress.py +45 -0
  229. robustcov-0.0.1/examples/use_case_quality_control.py +40 -0
  230. robustcov-0.0.1/examples/use_case_sensor_anomaly.py +43 -0
  231. robustcov-0.0.1/examples/use_case_text_embedding_outliers.py +48 -0
  232. robustcov-0.0.1/examples/use_case_wine_class_screening.py +48 -0
  233. robustcov-0.0.1/examples/visual_anomaly_2d.py +32 -0
  234. robustcov-0.0.1/examples/visual_diagnostics.py +33 -0
  235. robustcov-0.0.1/examples_external/DATASETS.md +34 -0
  236. robustcov-0.0.1/examples_external/README.md +64 -0
  237. robustcov-0.0.1/examples_external/_kaggle_utils.py +236 -0
  238. robustcov-0.0.1/examples_external/collect_external_results.py +63 -0
  239. robustcov-0.0.1/examples_external/finance_market_stress.py +144 -0
  240. robustcov-0.0.1/examples_external/finance_rolling_window_anomaly.py +119 -0
  241. robustcov-0.0.1/examples_external/kaggle_credit_card_fraud.py +48 -0
  242. robustcov-0.0.1/examples_external/kaggle_ieee_cis_fraud.py +47 -0
  243. robustcov-0.0.1/examples_external/kaggle_medical_screening.py +59 -0
  244. robustcov-0.0.1/examples_external/kaggle_network_intrusion.py +51 -0
  245. robustcov-0.0.1/examples_external/kaggle_predictive_maintenance.py +44 -0
  246. robustcov-0.0.1/examples_external/make_synthetic_prices.py +68 -0
  247. robustcov-0.0.1/examples_external/notebooks/robustcov_kaggle_template.ipynb +11 -0
  248. robustcov-0.0.1/examples_external/run_external_demo_suite.py +54 -0
  249. robustcov-0.0.1/notebooks/01_quickstart_robust_distances.ipynb +84 -0
  250. robustcov-0.0.1/notebooks/02_small_sample_heavy_tail.ipynb +64 -0
  251. robustcov-0.0.1/notebooks/03_credit_card_fraud_external_template.ipynb +69 -0
  252. robustcov-0.0.1/notebooks/04_finance_market_stress.ipynb +74 -0
  253. robustcov-0.0.1/notebooks/README.md +12 -0
  254. robustcov-0.0.1/pyproject.toml +159 -0
  255. robustcov-0.0.1/robustcov/__init__.py +72 -0
  256. robustcov-0.0.1/robustcov/_utils.py +100 -0
  257. robustcov-0.0.1/robustcov/auto.py +216 -0
  258. robustcov-0.0.1/robustcov/covariance.py +263 -0
  259. robustcov-0.0.1/robustcov/diagnostics.py +149 -0
  260. robustcov-0.0.1/robustcov/external.py +60 -0
  261. robustcov-0.0.1/robustcov/m_estimators.py +280 -0
  262. robustcov-0.0.1/robustcov/multimodal.py +194 -0
  263. robustcov-0.0.1/robustcov/outliers.py +115 -0
  264. robustcov-0.0.1/robustcov/parallel.py +43 -0
  265. robustcov-0.0.1/robustcov/plotting.py +391 -0
  266. robustcov-0.0.1/robustcov/preprocessing.py +27 -0
  267. robustcov-0.0.1/src/robustcov_cpp.cpp +671 -0
  268. robustcov-0.0.1/tests/test_basic.py +247 -0
  269. robustcov-0.0.1/tests/test_multimodal.py +19 -0
@@ -0,0 +1,34 @@
1
+ name: docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ docs:
11
+ name: Build documentation
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Check out repository
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+
23
+ - name: Install package and docs dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ python -m pip install -e ".[docs,examples]"
27
+
28
+ - name: Compile package and examples
29
+ run: |
30
+ python -m compileall -q robustcov examples benchmarks docs
31
+
32
+ - name: Build Sphinx docs
33
+ run: |
34
+ sphinx-build -W -b html docs docs/_build/html
@@ -0,0 +1,40 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ tests:
11
+ name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
12
+ runs-on: ${{ matrix.os }}
13
+
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ os: [ubuntu-latest, macos-latest, windows-latest]
18
+ python-version: ["3.12", "3.13", "3.14"]
19
+
20
+ steps:
21
+ - name: Check out repository
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install build tools
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ python -m pip install pytest
33
+
34
+ - name: Install package
35
+ run: |
36
+ python -m pip install -e .
37
+
38
+ - name: Run tests
39
+ run: |
40
+ python -m pytest -q
@@ -0,0 +1,135 @@
1
+ name: wheels
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ tags:
7
+ - "v*"
8
+
9
+ jobs:
10
+ sdist:
11
+ name: Build source distribution
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Check out repository
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+
23
+ - name: Install build tools
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ python -m pip install build twine
27
+
28
+ - name: Build sdist
29
+ run: |
30
+ python -m build --sdist
31
+
32
+ - name: Check sdist
33
+ run: |
34
+ python -m twine check dist/*
35
+
36
+ - name: Upload sdist artifact
37
+ uses: actions/upload-artifact@v4
38
+ with:
39
+ name: sdist
40
+ path: dist/*
41
+
42
+ wheels:
43
+ name: Build wheels on ${{ matrix.os }} / ${{ matrix.archs }}
44
+ runs-on: ${{ matrix.os }}
45
+
46
+ strategy:
47
+ fail-fast: false
48
+ matrix:
49
+ include:
50
+ - os: ubuntu-latest
51
+ archs: auto
52
+ - os: windows-latest
53
+ archs: AMD64
54
+ - os: macos-15-intel
55
+ archs: x86_64
56
+ - os: macos-15
57
+ archs: arm64
58
+
59
+ steps:
60
+ - name: Check out repository
61
+ uses: actions/checkout@v4
62
+
63
+ - name: Set up Python
64
+ uses: actions/setup-python@v5
65
+ with:
66
+ python-version: "3.12"
67
+
68
+ - name: Install cibuildwheel
69
+ run: |
70
+ python -m pip install --upgrade pip
71
+ python -m pip install cibuildwheel
72
+
73
+ - name: Build wheels
74
+ env:
75
+ CIBW_BUILD: "cp312-* cp313-* cp314-*"
76
+ CIBW_SKIP: "*-musllinux_* *-win32"
77
+ CIBW_ARCHS: ${{ matrix.archs }}
78
+ CIBW_TEST_COMMAND: "python -c \"import robustcov; print('robustcov import ok')\""
79
+ MACOSX_DEPLOYMENT_TARGET: "11.0"
80
+ run: |
81
+ python -m cibuildwheel --output-dir wheelhouse
82
+
83
+ - name: Upload wheel artifacts
84
+ uses: actions/upload-artifact@v4
85
+ with:
86
+ name: wheels-${{ matrix.os }}-${{ matrix.archs }}
87
+ path: wheelhouse/*.whl
88
+
89
+ check:
90
+ name: Check distributions
91
+ needs: [sdist, wheels]
92
+ runs-on: ubuntu-latest
93
+
94
+ steps:
95
+ - name: Download artifacts
96
+ uses: actions/download-artifact@v4
97
+ with:
98
+ path: dist
99
+ merge-multiple: true
100
+
101
+ - name: Set up Python
102
+ uses: actions/setup-python@v5
103
+ with:
104
+ python-version: "3.12"
105
+
106
+ - name: Check metadata
107
+ run: |
108
+ python -m pip install --upgrade pip
109
+ python -m pip install twine
110
+ python -m twine check dist/*
111
+
112
+ publish:
113
+ name: Publish to PyPI
114
+ needs: [check]
115
+ runs-on: ubuntu-latest
116
+
117
+ if: startsWith(github.ref, 'refs/tags/v')
118
+
119
+ environment:
120
+ name: pypi
121
+
122
+ permissions:
123
+ id-token: write
124
+
125
+ steps:
126
+ - name: Download distributions
127
+ uses: actions/download-artifact@v4
128
+ with:
129
+ path: dist
130
+ merge-multiple: true
131
+
132
+ - name: Publish to PyPI
133
+ uses: pypa/gh-action-pypi-publish@release/v1
134
+ with:
135
+ packages-dir: dist
@@ -0,0 +1,82 @@
1
+ # Python bytecode / caches
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ .pytest_cache/
6
+ .mypy_cache/
7
+ .ruff_cache/
8
+ .coverage
9
+ coverage.xml
10
+ htmlcov/
11
+ .tox/
12
+ .nox/
13
+
14
+ # Virtual environments
15
+ .venv/
16
+ venv/
17
+ env/
18
+ ENV/
19
+ .python-version
20
+
21
+ # Build artifacts
22
+ build/
23
+ dist/
24
+ *.egg-info/
25
+ .eggs/
26
+ pip-wheel-metadata/
27
+ wheelhouse/
28
+
29
+ # scikit-build / CMake / compiled extensions
30
+ _skbuild/
31
+ CMakeCache.txt
32
+ CMakeFiles/
33
+ cmake-build-*/
34
+ *.cmake
35
+ Makefile
36
+ compile_commands.json
37
+ *.so
38
+ *.pyd
39
+ *.dll
40
+ *.dylib
41
+ *.lib
42
+ *.a
43
+ *.o
44
+ *.obj
45
+
46
+ # cibuildwheel artifacts
47
+ .cibw/
48
+
49
+ # Docs
50
+ docs/_build/
51
+ site/
52
+
53
+ # Jupyter
54
+ .ipynb_checkpoints/
55
+
56
+ # OS files
57
+ .DS_Store
58
+ Thumbs.db
59
+ desktop.ini
60
+
61
+ # IDE / editors
62
+ .vscode/
63
+ .idea/
64
+ *.swp
65
+ *.swo
66
+ *~
67
+
68
+ # Logs
69
+ *.log
70
+
71
+ # Local environment files
72
+ .env
73
+ .env.*
74
+ !.env.example
75
+
76
+ # Packaging/signing
77
+ *.tar.gz
78
+ *.whl
79
+
80
+ # Conda
81
+ .conda/
82
+ conda-bld/
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ ## 0.0.1
4
+
5
+ Initial public-development release.
6
+
7
+ Highlights:
8
+
9
+ - FastMCD / MinCovDet-style robust covariance estimator.
10
+ - Tyler and regularized Tyler shape estimators.
11
+ - Student-t and Cauchy-style regularized robust scatter estimators.
12
+ - Robust anomaly diagnostics and plotting utilities.
13
+ - Auto robust scatter selection and cluster-aware multimodal diagnostics.
14
+ - Optional OpenMP acceleration for compiled C++ paths.
15
+ - Sphinx documentation, use-case gallery, benchmark gallery, and optional external/Kaggle examples.
16
+
@@ -0,0 +1,13 @@
1
+ cff-version: 1.2.0
2
+ title: robustcov
3
+ message: "If you use robustcov, please cite it using this metadata."
4
+ type: software
5
+ authors:
6
+ - family-names: Miryusupov
7
+ given-names: Shohruh
8
+ email: shohruh@miryusupov.com
9
+ repository-code: "https://github.com/smiryusupov/robustcov"
10
+ url: "https://github.com/smiryusupov/robustcov"
11
+ license: Apache-2.0
12
+ version: 0.0.1
13
+ date-released: 2026-06-06
@@ -0,0 +1,24 @@
1
+ cmake_minimum_required(VERSION 3.18)
2
+ project(robustcov_cpp LANGUAGES CXX)
3
+
4
+ set(CMAKE_CXX_STANDARD 17)
5
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
7
+
8
+ find_package(pybind11 CONFIG REQUIRED)
9
+ find_package(OpenMP)
10
+ pybind11_add_module(_robustcov_cpp src/robustcov_cpp.cpp)
11
+
12
+ if(OpenMP_CXX_FOUND)
13
+ target_link_libraries(_robustcov_cpp PRIVATE OpenMP::OpenMP_CXX)
14
+ target_compile_definitions(_robustcov_cpp PRIVATE ROBUSTCOV_OPENMP=1)
15
+ endif()
16
+
17
+
18
+ if (MSVC)
19
+ target_compile_options(_robustcov_cpp PRIVATE /O2)
20
+ else()
21
+ target_compile_options(_robustcov_cpp PRIVATE -O3 -Wall -Wextra)
22
+ endif()
23
+
24
+ install(TARGETS _robustcov_cpp LIBRARY DESTINATION robustcov)
@@ -0,0 +1,24 @@
1
+ # Contributing
2
+
3
+ Thank you for improving `robustcov`.
4
+
5
+ ## Development setup
6
+
7
+ ```bash
8
+ git clone https://github.com/smiryusupov/robustcov.git
9
+ cd robustcov
10
+ python -m venv .venv
11
+ source .venv/bin/activate # Windows: .venv\\Scripts\\activate
12
+ python -m pip install -U pip
13
+ python -m pip install -e ".[dev,docs,examples]"
14
+ ```
15
+
16
+ ## Checks before opening a pull request
17
+
18
+ ```bash
19
+ python -m compileall -q robustcov tests examples benchmarks docs
20
+ pytest -ra
21
+ sphinx-build -b html -W docs docs/_build/html
22
+ ```
23
+
24
+ The package contains a C++/pybind11 extension built with `scikit-build-core`, so changes to `src/`, `CMakeLists.txt`, or build metadata should be tested through the wheel workflow before release.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ https://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ https://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,33 @@
1
+ include README.md
2
+ include LICENSE
3
+ include NOTICE
4
+ include CHANGELOG.md
5
+ include CITATION.cff
6
+ include CONTRIBUTING.md
7
+ include RELEASE.md
8
+ include pyproject.toml
9
+ include CMakeLists.txt
10
+ include .readthedocs.yaml
11
+ include .gitignore
12
+
13
+ recursive-include robustcov *.py
14
+ recursive-include src *.cpp *.hpp *.h CMakeLists.txt
15
+ recursive-include tests *.py
16
+ recursive-include examples *.py
17
+ recursive-include examples_external *.py *.md
18
+ recursive-include benchmarks *.py *.md
19
+ recursive-include docs *.rst *.py *.md *.css *.png *.csv
20
+ recursive-include notebooks *.ipynb *.md
21
+ recursive-include conda *.md *.yaml *.yml
22
+ recursive-include .github/workflows *.yml *.yaml
23
+
24
+ global-exclude __pycache__ *.py[cod] *.so *.pyd *.dll *.dylib
25
+ global-exclude .DS_Store
26
+
27
+ prune docs/_build
28
+ prune results
29
+ prune .pytest_cache
30
+ prune .venv
31
+ prune examples_external/data
32
+ prune build
33
+ prune dist
robustcov-0.0.1/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ robustcov
2
+
3
+ Copyright 2026 Shohruh Miryusupov
4
+
5
+ This product includes software developed by Shohruh Miryusupov and the robustcov contributors.
6
+
7
+ robustcov is distributed under the Apache License, Version 2.0.
8
+ See the LICENSE file for the full license text.