Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reward delay and decrease delay period #72

Merged
merged 14 commits into from
May 10, 2024
2 changes: 1 addition & 1 deletion code/aind_auto_train/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.1"
__version__ = "1.1.0"

import logging

Expand Down
6 changes: 4 additions & 2 deletions code/aind_auto_train/curriculum_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

logger = logging.getLogger(__name__)

# Directory for caching df_maseter tables
# # Directory for caching df_maseter tables
# LOCAL_SAVED_CURRICULUM_ROOT = os.path.expanduser(
# '~\aind-foraging-behavior-bonsai-automatic-training\scratch\saved_curriculums/')
LOCAL_SAVED_CURRICULUM_ROOT = os.path.expanduser(
'~/capsule/scratch/saved_curriculums/')

Expand Down Expand Up @@ -54,7 +56,7 @@ def df_curriculums(self) -> pd.DataFrame:
schema_version_code_base = curriculum_schemas.Curriculum.model_fields['curriculum_schema_version'].default

for f in self.json_files:
match = re.search(r'(.+)_curriculum_v([\d.]+)_schema_v([\d.]+)\.json',
match = re.search(r'(.+)_curriculum_v(.+)_schema_v(.+)\.json',
os.path.basename(f))
if match is None:
logger.warning(
Expand Down
2 changes: 2 additions & 0 deletions code/aind_auto_train/curriculums/coupled_baiting_1p0.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

# %%
from aind_auto_train.curriculum_manager import LOCAL_SAVED_CURRICULUM_ROOT
from aind_auto_train import setup_logging
setup_logging()

from aind_auto_train.schema.curriculum import (
DynamicForagingCurriculum, StageTransitions, TransitionRule,
Expand Down
2 changes: 2 additions & 0 deletions code/aind_auto_train/curriculums/coupled_baiting_2p0.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

# %%
from aind_auto_train.curriculum_manager import LOCAL_SAVED_CURRICULUM_ROOT
from aind_auto_train import setup_logging
setup_logging()

from aind_auto_train.schema.curriculum import (
DynamicForagingCurriculum, StageTransitions, TransitionRule,
Expand Down
Loading