Skip to content

Latest commit

 

History

History
59 lines (17 loc) · 653 Bytes

DL4J.md

File metadata and controls

59 lines (17 loc) · 653 Bytes

Deeplearning4J classifier examples

Sentiment analysis

Main class

  • org.deeplearning4j.ReviewsClassifier

Gets a sentiment from the tex sample (IMDB review).

From each review we create Object, then feed it to the model and label this item as positive or negative.

String text = FileUtils.readFileToString(files[1]); Review review = new Review(model.prepareFeatures(text), model, text);

Text classifier

Main class

  • org.deeplearning4j.AnimalsClassifier

Image classifier

Main class

  • org.deeplearning4j.ImagesClassifier

Iris classifier

Main class

  • org.deeplearning4j.IrisClassifier