MRMD3.0 | English



代码: github


pip3 install -r requirements.txt --ignore-installed

2. 参数:

parameters description
-s, --start start index, default=1
-i, --inputfile input file (require:arff ,csv or libsvm format)
-e, --end end index, default=-1
-l, --length step length, default=1
-n, --n_dim mrmd2.0 features top n,default=-1
-t, --type_metric evaluation metric, default=f1
-m, --metrics_file output the metrics file’s name
-o, --outfile output the dimensionality reduction file’s name
-p, --picture The scatter plots before and after dimension reduction are generated by tsne,defalult=false
-r, --rank_method the rank method for features,choices=[“PageRank”,“Hits_a”,“Hits_h”,“LeaderRank”,“TrustRank”],default=“PageRank”
—————————————————— ————————————————


python3  -i test.csv -o out.csv -r PageRank
python3  -i test.csv -o out.csv -r LeaderRank
python3  -i test.csv -o out.csv -r TrustRank
python3  -i test.csv -o out.csv -r Hits_a
python3  -i test.csv -o out.csv -r Hits_h

4. mrmd3.0中使用的特征选择方法:

method the number of the implement method
anova *1 f_classif
chisquare *1 chi2
F value *1 f_regression
linear model *3 Lasso,LogisticRegression,Ridge
mic *3 mutual_info_classif
mrmd *3 pearson+Euclidean/Tanimoto/Cosine
mrmr *2 mid,miq
recursive feature elimination *4 LinearSVC,LogisticRegression, RandomForestClassifier,GradientBoostingClassifier
tree_feature_importance *3 DecisionTreeClassifier,RandomForestClassifier,GradientBoostingClassifier