Download the PHP package golivehost/brain without Composer

On this page you can find all versions of the php package golivehost/brain. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package brain

GoLiveHost Brain

A comprehensive PHP neural network library for machine learning and artificial intelligence applications.

Developed by: Go Live Web Solutions (golive.host)
Author: Shubhdeep Singh (GitHub.com/shubhdeepdev)

⚠️ IMPORTANT NOTE
The examples provided are for demonstration purposes only and are trained on very limited datasets.
The outputs may not be accurate or reliable for real-world applications.
For production use, you must train models on larger, representative datasets and thoroughly validate their performance before deployment.

Table of Contents

Installation

Install via Composer:

Features

Neural Network Architectures

Training Features

Data Processing

Additional Features

Quick Start

Basic Neural Network (XOR Problem)

Neural Network Types

Using the Brain Factory

The Brain class provides a convenient factory for creating different types of neural networks:

LSTM for Time Series Prediction

GRU for Sequential Data

Liquid State Machine for Complex Patterns

Advanced Features

Cross-Validation

Model Checkpointing

Batch Normalization

Custom Optimizers

Data Preprocessing

Model Validation

Configuration Options

Neural Network Options

Option Description Default
inputSize Number of input neurons 0 (auto-detect)
hiddenLayers Array of hidden layer sizes [10]
outputSize Number of output neurons 0 (auto-detect)
activation Activation function 'sigmoid'
learningRate Initial learning rate 0.3
momentum Momentum for SGD 0.1
iterations Maximum training iterations 20000
errorThresh Error threshold to stop training 0.005
log Enable training progress logging false
logPeriod Iterations between log outputs 10
dropout Dropout rate for regularization 0
decayRate Learning rate decay factor 0.999
batchSize Batch size for training 10
praxis Optimization algorithm ('sgd', 'adam') 'adam'
beta1 Adam optimizer beta1 0.9
beta2 Adam optimizer beta2 0.999
epsilon Adam optimizer epsilon 1e-8
normalize Auto-normalize data true

LSTM Options

Option Description Default
inputSize Size of input vectors 0 (auto-detect)
hiddenLayers Array of LSTM layer sizes [20]
outputSize Size of output vectors 0 (auto-detect)
activation Activation function 'tanh'
learningRate Initial learning rate 0.01
iterations Maximum training iterations 20000
clipGradient Gradient clipping threshold 5
batchSize Batch size for training 10

Liquid State Machine Options

Option Description Default
inputSize Number of input neurons 0 (auto-detect)
reservoirSize Size of the reservoir 100
outputSize Number of output neurons 0 (auto-detect)
connectivity Reservoir connectivity ratio 0.1
spectralRadius Spectral radius of reservoir 0.9
leakingRate Leaking rate for neurons 0.3
regularization L2 regularization parameter 0.0001
washoutPeriod Initial timesteps to discard 10

Examples

The library includes comprehensive examples in the examples directory:

API Reference

Matrix Operations

Tensor Operations

Model Export

Error Handling

The library uses custom exceptions for better error handling:

Performance Considerations

  1. Memory Usage: The library is optimized for memory efficiency, especially in LSTM implementations
  2. Batch Processing: Use batch training for better performance with large datasets
  3. Learning Rate Decay: Helps achieve better convergence
  4. Early Stopping: Prevents overfitting and reduces training time
  5. Model Checkpointing: Save progress during long training sessions

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Setup

License

This library is licensed under the MIT License. See LICENSE file for details.

Support

Credits

Developed by Go Live Web Solutions (golive.host)
Author: Shubhdeep Singh (GitHub.com/shubhdeepdev)


Building intelligent PHP applications with neural networks made simple.


All versions of brain with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package golivehost/brain contains the following files

Loading the files please wait ....