Skip to content

Commit

Permalink
Closing 1.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Alperte committed Jun 2, 2015
1 parent 3d39854 commit 5c54fcf
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
53 changes: 53 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# Changes in the BigML.io Java bindings

## 1.4 version

### New Features

* Added support for Local Anomalies

A new LocalAnomaly class to score anomalies in a dataset locally or embedded
into your application without needing to send requests to BigML.io.

This class cannot only save you a few credits, but also enormously reduce the
latency for each prediction and let you use your models offline.

Example usage (assuming that you have previously set up the BIGML_USERNAME
and BIGML_API_KEY environment variables and that you own the model/id below):

// API client
BigMLClient api = BigMLClient.getInstance();

// Retrieve a remote anomaly by id
JSONObject jsonAnomaly = api.getAnomaly("anomaly/551aa203af447f5484000ec0");

// A lightweight wrapper around a Anomaly resurce
LocalAnomaly localAnomaly = new LocalAnomaly(jsonAnomaly);

// Input data
JSONObject inputData = (JSONObject) JSONValue.parse("{\"src_bytes\": 350}");

// Calculate score
localAnomaly.score(inputData);


* Added support for Samples resources.

Full API documentation on the API can be found from BigML at:
https://bigml.com/developers/samples

* Added support for Project resources.

Full API documentation on the API can be found from BigML at:
https://bigml.com/developers/project

* Added support for predictions using Median.

### Improvements

* We improve the predictions responses adding the more information: Distribution,
DistributionUnit, Count and Median values associated to the prediction.

* Added methods in LocalModel class to get information of the model. Added methods: Summarize,
Data Distribution and Prediction Distribution.

* Added BaseModel and ModelFields base classes to reuse logic in LocalCluster and LocalPredictiveModel

## 1.3 version

### New Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Add the following dependency to your project's pom.xml file:
<dependency>
<groupId>org.bigml</groupId>
<artifactId>bigml-binding</artifactId>
<version>1.3</version>
<version>1.4</version>
</dependency>

Add the following lines to your project's pom.xml file if you want to use the SNAPSHOT versions of the library:
Expand Down
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.bigml</groupId>
<artifactId>bigml-binding</artifactId>
<version>1.3</version>
<version>1.4</version>
<packaging>jar</packaging>

<name>BigML.io Java bindings</name>
Expand Down Expand Up @@ -111,6 +111,12 @@
<version>3.1.2.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>3.1.2.RELEASE</version>
<scope>test</scope>
</dependency>


<!-- Application -->
Expand Down

0 comments on commit 5c54fcf

Please sign in to comment.