安装fate1.4及fate1.4报错记录
1.虚拟机网络修复参考:https://blog.csdn.net/LQ19921022/article/details/839957212.root账号默认登录设置默认root账号登录使用root账户进入系统后,打开’/etc/gdm/custom.conf’文件,在[daemon]下添加两行:AutomaticLoginEnable=TrueAutomaticLogin=root3.安装fat
1.虚拟机网络修复
参考:https://blog.csdn.net/LQ19921022/article/details/83995721
2.root账号默认登录设置
默认root账号登录
使用root账户进入系统后,打开’/etc/gdm/custom.conf’文件,在[daemon]下添加两行:
AutomaticLoginEnable=True
AutomaticLogin=root
3.安装fate
安装,参考: https://github.com/FederatedAI/FedRec/tree/master/standalone-deploy
虚拟环境版本是python3.7
fateflow操作手册:https://github.com/FederatedAI/FedRec/tree/master/fate_flow
上传数据
python fate_flow_client.py -f upload -c examples/upload_guest.json
python fate_flow_client.py -f upload -c examples/upload_host.json
提交任务
python fate_flow_client.py -f submit_job -d examples/test_hetero_lr_job_dsl.json -c examples/test_hetero_lr_job_conf.json
查看model_version
python fate_flow_client.py -f query_job -r guest -p 10000 -j 202109281524187335513
4.关闭防火墙永久:
systemctl disable firewalld.service
systemctl status firewalld.service
systemctl stop firewalld.service
访问http://***:8080/
5.调试
配置远程服务器地址部署路径填写/,根路径填写fate根路径
重装pip
python -m pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --upgrade pip
opencv-python==3.2.0.7 没找到
python环境变量设置参考:https://www.yisu.com/zixun/224286.html
查看软连接
ls -al |grep python
rm -rf /usr/bin/python
ln -s /usr/local/fate/standalone-fate-master-1.4.0/miniconda3-fate-1.1/bin/python /usr/bin/python
推荐算法步骤
1.上传数据文件
cd /usr/local/fate/standalone-fate-master-1.4.0/examples/federatedrec-examples/hetero_mf
python …/…/…/fate_flow/fate_flow_client.py -f upload -c upload_data_guest.json
python …/…/…/fate_flow/fate_flow_client.py -f upload -c upload_data_host.json
2.提交任务
python …/…/…/fate_flow/fate_flow_client.py -f submit_job -d test_hetero_mf_train_job_dsl.json -c test_hetero_mf_train_job_conf.json
3.预测
python …/…/…/fate_flow/fate_flow_client.py -f submit_job -d test_hetero_mf_train_job_dsl.json -c test_predict_conf.json
报错: 命令
删除表 flow table delete -n $NAMESPACE -t $TABLE_NAME
flow table delete -n hetero_svd_t -t hetero_svd_guest_1000
flow table delete -n hetero_svd_t -t hetero_svd_host_1000
命令不存在
报错: lmdb.Error: Attempt to operate on closed/deleted/dropped object.
设置内存为16g,数据上传的分区设置小写
报错 Internal Server Error
{
“retcode”: 100,
“retmsg”: “500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.”
}
重新初始化环境即可
报错:fateboard打不开
查看状态:sh service.sh status fate-fateboard
启动fateboard
cd fateboard
sh service.sh restart fate-fateboard
报错:Count of data_instance is 0,
conf文件dataio模块的表名或者表空间错误
其他
锁屏时间
应用程序-设置-隐私-锁屏
查看磁盘空间大小
df -h
安装pip
/usr/bin/python -m pip install --upgrade pip
pip install --upgrade pip
python -m pip install --user --upgrade pip==20.2.4 #(换成你想要的版本编号)
-
yum -y install epel-release
-
yum install python-pip
-
pip install --upgrade pip
卸载pip安装的包
pip freeze>python_modules.txt
pip uninstall -r python_modules.txt -y
更多推荐
所有评论(0)