Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TutorGym
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teachable AI Lab
TutorGym
Commits
14f3f828
Commit
14f3f828
authored
4 years ago
by
Chris MacLellan
Browse files
Options
Downloads
Patches
Plain Diff
renaming to follow PEP conventions for package name
parent
caa80f6a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+10
-0
10 additions, 0 deletions
README.md
TutorEnvs/__init__.py
+3
-2
3 additions, 2 deletions
TutorEnvs/__init__.py
TutorEnvs/fractions.py
+18
-0
18 additions, 0 deletions
TutorEnvs/fractions.py
with
31 additions
and
2 deletions
README.md
+
10
−
0
View file @
14f3f828
This library contains headless versions of a number of commonly used tutoring system environments for training simulated students.
To create an AI Gym environment for the Fraction Arithmetic tutor use the following commands:
```
import gym
import tutorenvs
env = gym.make('FractionArith-v0')
```
This diff is collapsed.
Click to expand it.
TutorEnvs/__init__.py
+
3
−
2
View file @
14f3f828
from
gym.envs.registration
import
register
from
tutorenvs.fractions
import
FractionArithEnv
register
(
id
=
'
FractionArith
Env
'
,
entry_point
=
'
T
utor
Envs.
envs:FractionArithEnv
'
,
id
=
'
FractionArith
-v0
'
,
entry_point
=
'
t
utorenvs:FractionArithEnv
'
,
)
This diff is collapsed.
Click to expand it.
TutorEnvs/fractions.py
+
18
−
0
View file @
14f3f828
import
gym
from
gym
import
error
,
spaces
,
utils
from
gym.utils
import
seeding
class
FractionArithEnv
(
gym
.
Env
):
metadata
=
{
'
render.modes
'
:
[
'
human
'
]}
def
__init__
(
self
):
pass
def
step
(
self
,
action
):
pass
def
reset
(
self
):
pass
def
render
(
self
,
mode
=
'
human
'
,
close
=
False
):
pass
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment