0.2.3 • Published 9 months ago

nrn-ml v0.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

install size Twitter LinkedIn

Getting Started

This package is used for low-level control of the machine learning models that is used in nrn-agents.

Installation

To start using the package, you can install it as follows:

npm install nrn-ml

Model Initialization

Initializing a neural network with 1 action head

const { NeuralNetworkMultihead } =  require("nrn-ml")

const modelData = {
  config: {
    inputDim: 5,
    neurons: [12, 6],
    actionOrder: ["action 1", "action 2"],
    modelType: "neural-network"
  }
}

const model = new NeuralNetworkMultihead(modelData)

Initializing a tabular model with 2 action heads

const { TabularModel } =  require("nrn-ml")

const modelData2 = {
  config: {
    inputDim: 10,
    actionNames: ["Direction", "Combat"],
    actionOrder: [["up", "down"], ["attack", "defend"]],
    actionPolicies: ["argmaxPolicy", "probabilisticSampling"],
    modelType: "simple"
  }
}

const model = new TabularModel({ metadata }, true)
0.2.3

9 months ago

0.2.2

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago