Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions algovivo/nn/NeuralFramePolicy.js → algovivo/nn/MLPPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function sampleNormal(mean, stdDev) {
return mean + z * stdDev;
}

class NeuralFramePolicy {
class MLPPolicy {
constructor(args = {}) {
if (args.system == null) {
throw new Error("system required to create policy");
Expand Down Expand Up @@ -128,4 +128,4 @@ class NeuralFramePolicy {
}
}

module.exports = NeuralFramePolicy;
module.exports = MLPPolicy;
2 changes: 1 addition & 1 deletion algovivo/nn/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
NeuralFramePolicy: require("./NeuralFramePolicy")
MLPPolicy: require("./MLPPolicy")
}
2 changes: 1 addition & 1 deletion demo/src/AgentSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class AgentSystem {

this.system.set(mesh);
if (policy != null) {
this.policy = new this.algovivo.nn.NeuralFramePolicy({ system: this.system });
this.policy = new this.algovivo.nn.MLPPolicy({ system: this.system });
this.policy.loadData(policy);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/nn/generateTrajectory.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function main() {
triangles: meshData.triangles,
trianglesRsi: meshData.rsi
});
const policy = new algovivo.nn.NeuralFramePolicy({
const policy = new algovivo.nn.MLPPolicy({
system: system,
active: true
});
Expand Down
2 changes: 1 addition & 1 deletion test/nn/trajectory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test("neural frame policy", async () => {
});
expect(system.l0.toArray()).toEqual(meshData.l0);
expect(system.rsi.toArray()).toEqual(meshData.rsi);
const policy = new algovivo.nn.NeuralFramePolicy({
const policy = new algovivo.nn.MLPPolicy({
system: system,
stochastic: false,
active: true
Expand Down