gleam_synapses/neural_network

Types

pub type NeuralNetwork =
  net.Network

Functions

pub fn customized_init(
  layers: List(Int),
  activation_f: fn(Int) -> Activation,
  weight_init_f: fn(Int) -> Float,
) -> ZList(ZList(Neuron))
pub fn errors(
  network: ZList(ZList(Neuron)),
  learning_rate: Float,
  input_values: List(Float),
  expected_output: List(Float),
) -> List(Float)
pub fn fit(
  network: ZList(ZList(Neuron)),
  learning_rate: Float,
  input_values: List(Float),
  expected_output: List(Float),
) -> ZList(ZList(Neuron))
pub fn init(layers: List(Int)) -> ZList(ZList(Neuron))
pub fn init_with_seed(
  seed: Int,
  layers: List(Int),
) -> ZList(ZList(Neuron))
pub fn of_json(json: String) -> ZList(ZList(Neuron))
pub fn prediction(
  network: ZList(ZList(Neuron)),
  input_values: List(Float),
) -> List(Float)
pub fn to_json(network: ZList(ZList(Neuron))) -> String
pub fn to_svg(network: ZList(ZList(Neuron))) -> String