0.2.3 • Published 6 months ago
nrn-ml v0.2.3
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
6 months ago
0.2.2
6 months ago
0.2.1
6 months ago
0.2.0
6 months ago
0.1.6
6 months ago
0.1.5
6 months ago
0.1.4
6 months ago
0.1.3
6 months ago
0.1.2
6 months ago
0.1.1
6 months ago
0.1.0
7 months ago
0.0.9
7 months ago
0.0.8
7 months ago
0.0.7
7 months ago
0.0.6
7 months ago
0.0.5
7 months ago
0.0.4
7 months ago
0.0.3
7 months ago
0.0.2
7 months ago