Skip to content

A high-level, fluent API for neural networks written in Java and modeled after Keras

Notifications You must be signed in to change notification settings

KartikChugh/Jeras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Jeras is a high-level, fluent API for neural networks written in Java and modeled after Keras. It is designed to support Keras objects, such as:

  • Optimizers
  • Activations
  • Layers
  • Sequential models
  • and more!

Code example

  // Build model architecture
  Sequential model = new Sequential();
  model.add(new Input(2).withBiasInitializer(ONES));
  model.add(new Dense(4).withBiasInitializer(CONSTANT.withValue(16)));
  model.add(new Dense(1));

  // Set training parameters
  model.compile()
          .withOptimizer(new Gd()
                  .withNesterov()
                  .withMomentum(0.2)
                  .withLearningRate(0.1))
          .withLossFunction(MSE);

  double[] y = model.predict(new double[]{1,2});
  System.out.println(Arrays.toString(y));

Current Status

Work-in-progress! Check out components here

About

A high-level, fluent API for neural networks written in Java and modeled after Keras

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages