Coder Social home page Coder Social logo

simple decision tree example about ck HOT 2 CLOSED

mlcommons avatar mlcommons commented on August 18, 2024
simple decision tree example

from ck.

Comments (2)

gfursin avatar gfursin commented on August 18, 2024

Sergey, I created a simple demo for your example:
You can get it here:
$ ck pull repo:ck-analytics
$ ck find demo:ml-decision-tree

In this directory you have two scripts:
$ ./model-sklearn-dtc-build.bat
$ ./model-sklearn-dtc-validate.bat

Input is in model-input.json

It will create a model and will produce various useful files including .dot, .pdf, .png, etc ...:
model-sklearn-dtc.model.*

Can you please check it and if it's ok close this ticket ...
Thanks a lot!

from ck.

gfursin avatar gfursin commented on August 18, 2024

Note that categorical feature dimensions are currently converted into floats (since I didn't find universal way in our ML modules to support strings directly), so you will see such conversion when building a decision tree. Alternatively, we can convert such string to floats before using CK ML (to keep consistency) ...

By the way, I also added CK mode to record produced predictive models (with all extra useful information) in a CK entry and to reuse it, i.e. just give some features and get answer.

Finally, I added small demo description here: https://github.com/ctuning/ck/wiki/Getting_started_guide_basic_ml

from ck.

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.