# MRMD2.0 **Repository Path**: imashao/MRMD2.0 ## Basic Information - **Project Name**: MRMD2.0 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## [mrmd2.0.py](http://lab.malab.cn:5001/MRMD2.0/Home) # 近期更新 ### 现在可以通过docker部署mrmd2.0环境. [docker安装参考 1(桌面版)](https://www.docker.com/products/docker-desktop) , [docker安装参考 2 (linux)](https://github.com/komavideo/LearnDocker/tree/master/Lesson02) ##### 安装成果后获取镜像: ``` git clone https://github.com/heshida01/MRMD2.0.git cd MRMD2.0 sudo docker pull heshida/mrmd2.0:latest ``` ##### 用法: ``` sudo python3 docker_mrmd2.0.py -i test.csv ``` 结果请在Results里面查找. ### 如果您不想使用docker,也可以采用下面的方式安装: #### 1. 安装: 推荐Anaconda(python版本必须是python3.6的) ###### 1.1 Linux: ``` pip3 install -r requirements.txt ``` #### 2. usage: ``` python3 mrmd2.0.py -i input.csv -s start_index -e end_index -l Step_length -o metrics.csv -c Dimensionalized_dataset.csv.csv ``` 程序可以选择数据集特征序列的某一区间进行降维,所以需要选择指定参数-s,-e,如果是对整个数据集进行降维,只需指定-s 1 ,-e -1 * -i 输入的数据集,目前支持csv,arff,libsvm * -s 用户指定的降维区间开始的位置(1是数据集的第一个特征的序号,不是0) * -e 用户指定的降维区间结束的位置(-1代表最后一个特征的序号,也可以写实际的序号) * -l 区间的步长(步长设置的大一点速度会快,小一点最后的结果会更好) * -o 降维后数据集的一些指标 * -c 降维后的数据集 终端输出的数据可以在Logs文件中查找,结果请在Results里面查找. #### 3. Example * test.csv是一个150维的数据集 * 首先选择一个降维区间(从第1个特征到第150个特征,也就是对整个特征数据集降维,当然也可以自己选择一个其他的连续的特征区间) * 步长设为1 ``` python3 mrmd2.0.py -i test.csv -o metrics.csv -c Dimensionalized_dataset.csv python3 mrmd2.0.py -i test.arff -o metrics.csv -c Dimensionalized_dataset.arff python3 mrmd2.0.py -i test.libsvm -o metrics.csv -c Dimensionalized_dataset.libsvm ``` #### 4. FAQ * problem1: ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. solve1: pip install -r requirements.txt --ignore-installed ************************* * problem2: error: command 'x86_64-conda_cos6-linux-gnu-gcc' failed with exit status 1. solve2: conda install gxx_linux-64