Machine Learning and Optimization Visualizer

Visualizer for machine learning and optimization result

License

License

MIT
Categories

Categories

Java Languages Data
GroupId

GroupId

com.github.chen0040
ArtifactId

ArtifactId

java-data-visualizer
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Machine Learning and Optimization Visualizer
Visualizer for machine learning and optimization result
Project URL

Project URL

https://github.com/chen0040/java-data-visualizer
Source Code Management

Source Code Management

https://github.com/chen0040/java-data-visualizer

Download java-data-visualizer

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.chen0040/java-data-visualizer/ -->
<dependency>
    <groupId>com.github.chen0040</groupId>
    <artifactId>java-data-visualizer</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.chen0040/java-data-visualizer/
implementation 'com.github.chen0040:java-data-visualizer:1.0.1'
// https://jarcasting.com/artifacts/com.github.chen0040/java-data-visualizer/
implementation ("com.github.chen0040:java-data-visualizer:1.0.1")
'com.github.chen0040:java-data-visualizer:jar:1.0.1'
<dependency org="com.github.chen0040" name="java-data-visualizer" rev="1.0.1">
  <artifact name="java-data-visualizer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.chen0040', module='java-data-visualizer', version='1.0.1')
)
libraryDependencies += "com.github.chen0040" % "java-data-visualizer" % "1.0.1"
[com.github.chen0040/java-data-visualizer "1.0.1"]

Dependencies

compile (5)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.20
org.slf4j : slf4j-log4j12 jar 1.7.20
org.apache.commons : commons-math3 jar 3.2
com.github.chen0040 : java-data-frame jar 1.0.11
org.jfree : jfreechart jar 1.0.19

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.6

test (10)

Group / Artifact Type Version
org.testng : testng jar 6.9.10
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3
org.assertj : assertj-core jar 3.5.2
org.powermock : powermock-core jar 1.6.5
org.powermock : powermock-api-mockito jar 1.6.5
org.powermock : powermock-module-junit4 jar 1.6.5
org.powermock : powermock-module-testng jar 1.6.5
org.mockito : mockito-core jar 2.0.2-beta
org.mockito : mockito-all jar 2.0.2-beta

Project Modules

There are no modules declared in this project.

java-data-visualizer

A data visualization tool for visualizing results from machine learning and optimization

Install

Add the following dependency to your POM file:

<dependency>
  <groupId>com.github.chen0040</groupId>
  <artifactId>java-data-visualizer</artifactId>
  <version>1.0.1</version>
</dependency>

Usage

To visualize a 2-objective pareto front for a multi-objective optimization problem:

// data stores a list of solution, which contains objective-1 and objective-2 values
List<TupleTwo<Double, Double>> data = new ArrayList<>();

data.add(new TupleTwo<>(1.0, 2.0)); // for this solution, objective-1 is 1.0 and objective-2 is 2.0
data.add(new TupleTwo<>(3.0, 3.0)); // for this solution, objective-1 is 3.0 and objective-2 is 3.0
ParetoFront chart = new ParetoFront(data, "pareto front");
chart.showIt(); // to center the chart, call chart.showIt(true) instead

To visualize the cost trend vs generation as the optimization progress:

// cost trend means cost at generation 0 is 1.0, at generation 1 is 1.2, ...
List<Double> costTrends = Arrays.asList(1.0, 1.2, 1.3, 1.34, 1.23, 1.11, 1.5);

CostTrend chart = new CostTrend(costTrends, "cost vs generation");
chart.showIt(true);

Versions

Version
1.0.1