Skip to content
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

A little question #415

Open
rookiecoder-chen opened this issue Dec 21, 2019 · 6 comments
Open

A little question #415

rookiecoder-chen opened this issue Dec 21, 2019 · 6 comments

Comments

@rookiecoder-chen
Copy link

Hello, I trained my own CSV dataset by using chainer-chemistry, but I only got MAE when I used the model for prediction. How can I get the prediction value of each test data? I want to be able to compare it with the true value of my data.

@corochann
Copy link
Member

You can use regressor.predict method to get predict value.

Evaluator only calculates MAE or other metrics.

@rookiecoder-chen
Copy link
Author

OK, thank you very much for your reply. If I want to draw the loss or MAE in the model training process, what should I do?

@corochann
Copy link
Member

Do you use Trainer to train model?

In that case you can use PlotReport, please refer this example.
https://github.com/chainer/chainer/blob/90b0cd425014d31aae122f21bce20ecf23486e11/examples/mnist/train_mnist.py#L113

@rookiecoder-chen
Copy link
Author

I used the model in example / own_dataset to train my own data. The model uses the run_train () method. Is it different from the Trainer?

@corochann
Copy link
Member

It internally uses Trainer.

I guess you can pass below to run_train method:
extensions_list=[extensions.PlotReport(['main/loss', 'validation/main/loss'], 'epoch', file_name='loss.png')] to add PlotReport extensions.

@rookiecoder-chen
Copy link
Author

OK, when using CSV data for multiple label training, I found that the model only outputs one loss. How do you handle multiple label training? Will different labels affect each other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants