All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bigml.binding.SupervisedModelInterface Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.1.1
Show newest version
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