preprocessing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeData

func NormalizeData(data [][]float64)

NormalizeData normalizes the data by dividing each value by 1000 This helps the perceptron since we are testing high values that could lead to a slow convergence

func ReadData

func ReadData(path string) [][]float64

ReadData reads a CSV file and returns the data as a slice of float64 slices. This, here, is used to read the inputs

func ReadSingleColumnData

func ReadSingleColumnData(path string) []float64

ReadSingleColumnData reads a single column from a CSV file and returns it as a slice of float64. This is used to read the expected outputs

Types

This section is empty.

Jump to

Keyboard shortcuts

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