GithubHelp home page GithubHelp logo

Comments (3)

vruusmann avatar vruusmann commented on July 1, 2024 1

Could you, please, provide an illustration of how the python client can be used for regression task like the Iris data classification example?

The type of mining function - regression, classification, clustering etc - is an PMML-internal implementation detail, which is not reflected in Openscoring server or client APIs. In other words, you should be able to deploy and score any PMML document using a standardized workflow/code, without bothering what's actually inside it.

Also, please, what does the first parameter in the os.evaluateCsvFile represent - is it the model or target name? Yours was Iris

It's the model's identifier.

You assign the identifier using the deployFile command. Whatever ID you chose, you need to keep using the same ID (case sensitive) throughout the remainder of your Python script. If you are pulling models from an external source where they already have identifiers, then your best best is to keep (re)using the same identifiers with Openscoring. For example, you can replace "Iris" with "Iris_Species_20190111-v1".

from openscoring-python.

vruusmann avatar vruusmann commented on July 1, 2024

it seems openscoring only support classification models.

Openscoring is a thin REST wrapper around the JPMML-Evaluator library: https://github.com/jpmml/jpmml-evaluator

See the list of supported and unsupported models under the features section:
https://github.com/jpmml/jpmml-evaluator#features

The RegressionModel element, in both its regression and classification variants, is one of the simplest model types, and is definitely 100% supported.

And I get the following information on the SERVER terminal

See the log messages right before and after that INFO message. There should be a description of the associated EvaluationRequest object (were all the inputs correctly received?), and if some Java exception was thrown (in case of unsupported PMML markup, it should be either an org.jpmml.evaluator.UnsupportedElementException or o.j.e.UnsupportedAttributeException), its full stack trace.

My input file just contain class

I would recommend you to first run your PMML + CSV combo using the org.jpmml.evaluator.EvaluationExample command-line application as described here:
https://github.com/jpmml/jpmml-evaluator#example-applications

from openscoring-python.

taiwotman avatar taiwotman commented on July 1, 2024

Thanks for your reply. I will test it out using the JPMML albeit my simple project is in python. In fact, I see that the server successfully reads the argument but the regression output is None.
Could you, please, provide an illustration of how the python client can be used for regression task like the Iris data classification example? Also, please, what does the first parameter in the os.evaluateCsvFile represent - is it the model or target name? Yours was Iris .

from openscoring-python.

Related Issues (12)

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.