Skip to content

KerelosGayed/StockPredict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Deep Learning Demo (Java + DL4J)

A lightweight deep learning demo built in Java using Deeplearning4j (DL4J) . This project demonstrates how to build, train, and visualize a simple neural network โ€” all within a pure Java environment.

๐Ÿš€ Features

โœ… Implements a fully connected neural network using DL4J

๐Ÿ“Š Includes a live training UI via UIServer and StatsListener

๐Ÿงฉ Utilizes DataVec for dataset parsing, schema transformation, and preprocessing

โš™๏ธ Configurable layers, activation functions, and optimizers

๐Ÿ’พ Easily extendable for your own CSV or in-memory datasets

๐Ÿงฉ Tech Stack

Component Description Language Java Framework Deeplearning4j Data Pipeline DataVec Visualization DL4J UI Server Build Tool Maven / Gradle (depending on your setup)

๐Ÿง  How It Works

Loads data โ€” from a CSV file or in-memory collection

Defines a schema and applies transformations via TransformProcess

Builds a neural network using NeuralNetConfiguration and multiple DenseLayers

Trains the model, tracking progress with StatsListener

Launches the DL4J UI to visualize performance and metrics in real time

๐Ÿƒโ€โ™‚๏ธ Running the Project

Prerequisites

Make sure you have:

Java 11+

Maven or Gradle

(Optional) A CSV dataset if youโ€™re experimenting with custom data

Steps

Clone this repository

git clone https://github.com/yourusername/deeplearning-demo.git cd deeplearning-demo

Compile and run

mvn clean install mvn exec:java -Dexec.mainClass="com.deeplearning.App"

Once running, open your browser to:

http://localhost:9000

to view the interactive DL4J Training Dashboard.

๐Ÿงฎ Example Output

During training, the console and UI will display:

Iteration loss (via ScoreIterationListener)

Network accuracy and error

Live plots of learning rate, gradients, and parameters

๐Ÿ“ˆ Future Improvements

Add different activation functions and optimizers

Integrate a real-world dataset (e.g., MNIST or Iris)

Save and load trained models

Add evaluation metrics (precision, recall, F1-score)

About

A simple Java demo showcasing neural network training and visualization with Deeplearning4j.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages