CLI tạo report mô tả mối quan hệ giữa feature.csv và label.csv.
uv syncfldataprofier fit feature.csv label.csv --module statisticsEDA module dùng để phân tích tổng quan riêng cả feature.csv và label.csv:
fldataprofier fit feature.csv label.csv --module edaSciPy module dùng để kiểm định mối quan hệ feature/label:
fldataprofier fit feature.csv label.csv --module scipySklearn module dùng để đánh giá sức dự đoán và feature importance:
fldataprofier fit feature.csv label.csv --module sklearnStatsmodels module dùng để xem OLS coefficient, p-value và confidence interval:
fldataprofier fit feature.csv label.csv --module statsmodelsXGBoost module dùng gradient boosting để đánh giá sức dự đoán phi tuyến và feature importance:
fldataprofier fit feature.csv label.csv --module xgboostSHAP module fit XGBoost và giải thích feature impact bằng mean absolute SHAP value:
fldataprofier fit feature.csv label.csv --module shapBoruta module dùng RandomForest với shadow features để chọn feature quan trọng:
fldataprofier fit feature.csv label.csv --module borutaKMean module ghép từng cặp numeric feature với từng label category/text rồi dùng KMeans clustering để đánh giá mức khớp giữa cụm và label:
fldataprofier fit feature.csv label.csv --module kmeanKMeans GPU module dùng RAPIDS cuML KMeans cho cùng kiểu report, tối ưu precompute dữ liệu và giới hạn sample cho silhouette metric. Module này cần cài cuml phù hợp CUDA/driver của máy:
fldataprofier fit feature.parquet label.parquet --module kmeans_gpuFeature scoring modules: information_coefficient, permutation_importance_ts, timeseries_importance, mutual_information, mrmr, stability_selection, regularized_linear, lightgbm, feature_interactions, regime_scoring. Các module này tạo feature_scores.csv, top_features.csv, summary.json, report.md và report.html để tìm feature có giá trị dự đoán label. Progress bar tqdm tự bật khi chạy trong terminal và được chia theo các phase như load, score, aggregate/combine và write.
Mặc định output được ghi vào reports/<module>/, ví dụ reports/statistics/ hoặc reports/scipy/. Có thể đổi thư mục output hoặc khóa join:
fldataprofier fit feature.csv label.csv --module statistics --output-dir reports --join-key idCLI cũng đăng ký alias đúng chính tả hơn:
fldataprofiler fit feature.csv label.csv --module statisticsModule eda tạo các file:
report.mdreport.htmlsummary.jsondataset_overview.csvcolumns_profile.csvmissingness.csvnumeric_summary.csvcategorical_summary.csvfeature_correlation_heatmap.pnglabel_correlation_heatmap.png
Module statistics tạo các file:
report.mdreport.htmlfeature_label_correlation_heatmap.pngstatistics_summary.jsonfeature_profile.csvlabel_profile.csvfeature_label_correlations.csv
Module scipy bỏ qua cột Date khi đánh giá và tạo các file:
report.mdreport.htmlsummary.jsonpairwise.csvtwo_feature.csv
Module sklearn dùng numeric features trước, fit Ridge cho label numeric và SGDClassifier cho label categorical/binary:
report.mdreport.htmlsummary.jsonscores.csvimportance.csv
Module statsmodels fit OLS cho numeric labels, chọn tối đa 25 numeric features có absolute correlation cao nhất cho từng label:
report.mdreport.htmlsummary.jsonscores.csvcoefficients.csv
Module xgboost dùng numeric features trước, fit XGBRegressor cho label numeric và XGBClassifier cho label categorical/binary:
report.mdreport.htmlsummary.jsonscores.csvimportance.csv
Module shap fit XGBoost rồi tính mean absolute SHAP value cho từng feature/label:
report.mdreport.htmlsummary.jsonscores.csvshap_importance.csv
Module boruta fit RandomForest nhiều vòng với shadow features, phân loại feature thành confirmed, tentative hoặc rejected:
report.mdreport.htmlsummary.jsonscores.csvboruta_features.csv
Module kmean tạo toàn bộ bộ feature_1 + feature_2 + label, split train/test, fit KMeans và output cả combination chạy được lẫn skipped:
report.mdreport.htmlsummary.jsonnumeric_features.csvcategorical_labels.csvkmean_results.csvcluster_label_distribution.csv
Module kmeans_gpu tạo cùng artifact với kmean, nhưng dùng RAPIDS cuML KMeans, precompute numeric/label arrays và chỉ tính silhouette trên sample giới hạn để giảm thời gian chạy:
report.mdreport.htmlsummary.jsonnumeric_features.csvcategorical_labels.csvkmean_results.csvcluster_label_distribution.csv
Package được tách theo registry để mở rộng:
fldataprofier/cli.py: parse commandfitvà gọi module được chọn.fldataprofier/registry.py: đăng ký module theo tên.fldataprofier/modules/base.py: protocol chung cho module profiling.fldataprofier/utils.py: helper dùng chung cho join, target selection, numeric coercion, sampling, markdown table và ghi artifact.fldataprofier/modules/boruta.py: module Boruta-style feature selection.fldataprofier/modules/eda.py: module EDA tổng quan cho feature và label.fldataprofier/modules/kmean.py: module KMeans clustering cho từng cặp numeric feature và categorical/text label.fldataprofier/modules/kmeans_gpu.py: module KMeans GPU dùng RAPIDS cuML và tối ưu preprocessing/silhouette sampling.fldataprofier/modules/statistics.py: module thống kê đầu tiên.fldataprofier/modules/scipy.py: module SciPy cho kiểm định feature/label.fldataprofier/modules/shap.py: module SHAP cho giải thích model XGBoost.fldataprofier/modules/sklearn.py: module sklearn cho model score và feature importance.fldataprofier/modules/statsmodels.py: module statsmodels cho OLS inference.fldataprofier/modules/xgboost.py: module XGBoost cho gradient boosting score và feature importance.
Để thêm module mới, tạo class có method run(...) trả về ModuleResult, rồi đăng ký instance trong fldataprofier/registry.py.