Skip to content

Private Functions in NeuralNetwork #120

@freddyC

Description

@freddyC

So I have been thinking about #99 and I think another thing that can get new users bogged down is how many methods and variables are exposed. For example in the REPL I instantiate a simple NeuralNetwork and her are the things I have control over:

image

How many of these do we actually want the user to be interacting with? If the user trains a network, then randomly calls initialize with some given size their network is dust in the wind.

I think if we take the methods that are meant to only be used internally within the class and declare them in the constructor (or some other scheme for having them not public). I think that might also help those new to the library. I don't mind doing this If you want me to.

Just check boxes you want Private and I will take care of it.

  • adjustWeights
  • calculateDeltasLeakyRelu
  • calculateDeltasRelu
  • calculateDeltasSigmoid
  • calculateDeltasTanh
  • createTrainStream
  • formatData
  • fromJSON
  • initialize
  • run
  • runInputLeakyRelu
  • runInputRelu
  • runInputSigmoid
  • runInputTanh
  • setActivation
  • test
  • toFunction
  • toJSON
  • train
  • trainPattern
  • activation
  • biases
  • binaryThresh
  • calculateDeltas
  • changes
  • deltas
  • errors
  • hiddenLayers
  • hiddenSizes
  • learningRate
  • momentum
  • outputLayer
  • outputs
  • runInput
  • sizes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions