Code Monkey home page Code Monkey logo

Comments (5)

Craigacp avatar Craigacp commented on May 22, 2024 1

I'm writing a tutorial on the RowProcessor at the moment, it should land in a public branch sometime early next week.

In general, yes we do plan to build out the docs, focusing on the areas people are flagging initially. Next up on the deck after the RowProcessor tutorial is one on third party model loading using ONNXExternalModel and XGBoostExternalModel. We'll add TensorFlow to that tutorial once Tribuo has been migrated over to the recent tensorflow-java 0.2.0 release, as that will change how Tribuo's TF interface works.

from tribuo.

Craigacp avatar Craigacp commented on May 22, 2024

Yep, but to process csvs where you don't want to use all the columns then you need to use RowProcessor rather than the simple CSVLoader. If you instantiate a CSVDataSource you can pass it a RowProcessor instance which controls how columnar data is parsed. The RowProcessor accepts a fieldProcessorMap which gives the mapping between feature fields and the processor used to convert the String in that field into a list of Tribuo features, and a ResponseProcessor which you can use to pick the response column. The RowProcessor is very flexible so there are lots of other parameters but that should be sufficient to get you going.

from tribuo.

galimru avatar galimru commented on May 22, 2024

Great, this is very clear. I appreciate it.

from tribuo.

Craigacp avatar Craigacp commented on May 22, 2024

I'll add docs to the RowProcessor constructors in the docs pass this week.

from tribuo.

leccelecce avatar leccelecce commented on May 22, 2024

Hi @Craigacp - I'm in the same boat, trying to get started with Tribuo and some basic CSV files with non-double Feature values. I've been working my way through the library but it would be great to have some code samples using RowProcessor etc. - had a quick look in the docs and tests but couldn't see anything obvious. Are there plans to build out the docs or have I just missed something?

from tribuo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.