This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from twitter/kmathewson/rename
refactored name of luarocks package from rl to twrl
- Loading branch information
Showing
14 changed files
with
53 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
local agent = { | ||
baseAgent = require 'rl.agent.baseAgent', | ||
learningUpdate = require 'rl.agent.learningUpdate', | ||
model = require 'rl.agent.model', | ||
policy = require 'rl.agent.policy' | ||
baseAgent = require 'twrl.agent.baseAgent', | ||
learningUpdate = require 'twrl.agent.learningUpdate', | ||
model = require 'twrl.agent.model', | ||
policy = require 'twrl.agent.policy' | ||
} | ||
|
||
return agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
local learningUpdate = { | ||
noLearning = require 'rl.agent.learningUpdate.noLearning', | ||
reinforce = require 'rl.agent.learningUpdate.reinforce', | ||
tdLambda = require 'rl.agent.learningUpdate.tdLambda', | ||
util = require 'rl.agent.learningUpdate.util' | ||
noLearning = require 'twrl.agent.learningUpdate.noLearning', | ||
reinforce = require 'twrl.agent.learningUpdate.reinforce', | ||
tdLambda = require 'twrl.agent.learningUpdate.tdLambda', | ||
util = require 'twrl.agent.learningUpdate.util' | ||
} | ||
|
||
return learningUpdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
local model = { | ||
mlp = require 'rl.agent.model.mlp', | ||
noModel = require 'rl.agent.model.noModel', | ||
qFunction = require 'rl.agent.model.qFunction', | ||
tilecoding = require 'rl.agent.model.tilecoding' | ||
mlp = require 'twrl.agent.model.mlp', | ||
noModel = require 'twrl.agent.model.noModel', | ||
qFunction = require 'twrl.agent.model.qFunction', | ||
tilecoding = require 'twrl.agent.model.tilecoding' | ||
} | ||
|
||
return model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
local actionSamplers = require 'rl.agent.policy.actionSamplers' | ||
local actionSamplers = require 'twrl.agent.policy.actionSamplers' | ||
|
||
local policy = { | ||
egreedy = require 'rl.agent.policy.egreedy', | ||
normal = require 'rl.agent.policy.stochasticModelPolicy'({ | ||
egreedy = require 'twrl.agent.policy.egreedy', | ||
normal = require 'twrl.agent.policy.stochasticModelPolicy'({ | ||
actionSampler = actionSamplers.normal | ||
}), | ||
categorical = require 'rl.agent.policy.stochasticModelPolicy'({ | ||
categorical = require 'twrl.agent.policy.stochasticModelPolicy'({ | ||
actionSampler = actionSamplers.categorical | ||
}), | ||
random = require 'rl.agent.policy.random', | ||
random = require 'twrl.agent.policy.random', | ||
} | ||
|
||
return policy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
local rl = {} | ||
local twrl = {} | ||
|
||
-- Meta info | ||
rl.VERSION = '0.1' | ||
rl.LICENSE = 'MIT' | ||
twrl.VERSION = '0.1' | ||
twrl.LICENSE = 'MIT' | ||
|
||
-- Utility packages | ||
rl.agent = require 'rl.agent' | ||
rl.util = require 'rl.util' | ||
rl.perf = require 'rl.perf' | ||
rl.experiment = require 'rl.experiment' | ||
rl.gymClient = require 'rl.binding-lua.gym_http_client' | ||
twrl.agent = require 'twrl.agent' | ||
twrl.util = require 'twrl.util' | ||
twrl.perf = require 'twrl.perf' | ||
twrl.experiment = require 'twrl.experiment' | ||
twrl.gymClient = require 'twrl.binding-lua.gym_http_client' | ||
|
||
-- Return package | ||
return rl | ||
return twrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters