-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-class classification problem #66
Comments
Hi @stamatisvas , It seems that you did not specify |
Yes, this was the problem and it is now working. Thank you! However, having a trained model I faced the following problems
predictions = federatedcsvmodel.predict(X_test) 2023-05-26 12:06:21,520 INFO [default] #instances = 10845, #features = 11
2023-05-26 12:09:06,024 INFO dataset.cpp:396 : loading csv dataset from file ## /media/sf_Shared_Ubuntu_Windows/fedtree_data/test_data.csv ## which makes sense (I am getting 99% accuracy with centralized models). However, the prediciton.txt file that is saved in the folder has totally random predictions most of which are 0, and this results in 0% accuracy when checking it manually. |
I am using 3 clients to train a model using the following parameters in the clients:
data=./mydata1.csv
test_data=./mytest_data.csv
model_path=mymodel.model
n_parties=3
data_format=csv
n_features=11
objective=multi:softmax
mode=horizontal
partition=0
learning_rate=0.1
max_depth=6
n_trees=50
ip_address=192...
Everything in the training is working but when I am trying to predict, the model predicts only 0.0 while the labels are (0,1,2). I also tried with objective=multi:softprob but the same happened. Also, I tried both the python .predict function and the terminal i.e. /build/bin/FedTree-predict ./predict.conf but I am getting exactly the same results (only 0).
The text was updated successfully, but these errors were encountered: