perceptron

module
v0.0.0-...-cf6510d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2025 License: MIT

README

Perceptron

Go Reference

A simple, generic implementation of a Perceptron in Go (Golang), supporting multi-dimensional datasets and optional training history recording.

Disclaimer
This project was created only for educational purposes.
There are no guarantees regarding correctness, performance, or suitability for any real-world application.

Overview

This package implements a basic linear binary classifier (perceptron) for numeric datasets.
It supports:

  • Training on multi-dimensional features.
    • 2D Example: animated_lines_with_errors
    • 3D Example: animated_planes_with_errors
  • Training history tracking (optional) — including weights, bias, and mean error after each epoch.

Features

  • Trainable perceptron with a customizable learning rate and epochs.
  • Predict new data points after training.
  • Access complete training history for analysis or visualization.
  • Lightweight and dependency-free (except for golang.org/x/exp/constraints).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL