question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Whats the best route to save the predictions into a csv file (using Tribuo classes)

See original GitHub issue

Ask the question What’s the best route to save the predictions into a csv file (using Tribuo classes). Say I have a List<Prediction<Regressor>>

One way could be to iterate thru the list of items and write it to the disk via some FileXxxx() class.

Is your question about a specific Tribuo class? List<Prediction<Regressor>> and Dataset (one of it’s concrete subclasses)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
neomatrix369commented, Jan 28, 2021

Ok. I’m not sure where such a method should live. We have done this in the past when writing out classification outputs for comparison against other systems, but it lives in the main method - https://github.com/oracle/tribuo/blob/main/Classification/Experiments/src/main/java/org/tribuo/classification/experiments/ConfigurableTrainTest.java#L169.

Any suggestions on where it should go? It needs to be specialised to each Output type, so I guess it could be a method on the OutputFactory?

Let me try to work a workflow from a user perspective, I think some of the low-level (granular) calls could be brought to a higher-level (wrapped with higher-level functions) so we don’t have to do a lot of x.y.z() to get to the results - there is a bit of a cognitive overload as well when it comes to getting from one part of the flow to the other.

0reactions
Craigacpcommented, Jan 28, 2021

What else did you need apart from the regression outputs? The features and ground truth outputs should be simple to access.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to program machine learning in Java with the Tribuo library
Tribuo is a new open source library written in Java from Oracle Labs' ... themselves are typed using the prediction class they produce....
Read more >
Loading Columnar Data - Tribuo: Machine Learning in Java
This tutorial demonstrates Tribuo's systems for loading and featurising complex columnar data like csv files, json, and SQL database tables. Tribuo's Example ...
Read more >
Saving prediction results to CSV - python - Stack Overflow
First Save the Model joblib.dump(regressor, "regressor. · Save columns in order pd.DataFrame(X_train. · Save data types of train set pd.DataFrame( ...
Read more >
How to Save Your Machine Learning Model and Make ...
You can easily save a trained model to file in the Weka Explorer ... For example, below is an example of the same...
Read more >
Going Deeper with Tribuo—Regression, Provenance and ...
In the previous post, First Tribuo Example, we saw how to implement a wine quality classifier with Tribuo, a Java-based Machine Learning library....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found