org.bigml.binding.SupervisedModelInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bigml-binding Show documentation
Show all versions of bigml-binding Show documentation
An open source Java client that gives you a simple binding to interact with BigML. You can use it to
easily create, retrieve, list, update, and delete BigML resources.
package org.bigml.binding;
import java.util.List;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
/**
* Interface for supervised local models.
*/
public interface SupervisedModelInterface {
/**
* Returns the resourceId
*/
String getResourceId();
/**
* Returns the class names
*/
List getClassNames();
/**
* For classification models, Predicts a probability for
* each possible output class, based on input values. The input
* fields must be a dictionary keyed by field name or field ID.
*/
JSONArray predictProbability(
JSONObject inputData, MissingStrategy missingStrategy) throws Exception;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy