Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetaRL
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wang, Mia
MetaRL
Commits
61295621
Commit
61295621
authored
2 years ago
by
Sun Jin Kim
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
2e64210a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MetaAugment/autoaugment_learners/evo_learner.py
+2
-3
2 additions, 3 deletions
MetaAugment/autoaugment_learners/evo_learner.py
wapp_util.py
+8
-1
8 additions, 1 deletion
wapp_util.py
with
10 additions
and
4 deletions
MetaAugment/autoaugment_learners/evo_learner.py
+
2
−
3
View file @
61295621
...
...
@@ -7,12 +7,11 @@ import pygad.torchga as torchga
import
copy
import
torch
from
MetaAugment.controller_networks.evo_controller
import
evo_controller
from
MetaAugment.autoaugment_learners.aa_learner
import
aa_learner
,
augmentation_space
import
MetaAugment.child_networks
as
cn
from
.aa_learner
import
aa_learner
,
augmentation_space
class
evo_learner
():
class
evo_learner
(
aa_learner
):
def
__init__
(
self
,
sp_num
=
1
,
...
...
This diff is collapsed.
Click to expand it.
wapp_util.py
+
8
−
1
View file @
61295621
...
...
@@ -12,7 +12,9 @@ import torchvision.datasets as datasets
import
MetaAugment.autoaugment_learners
as
aal
import
MetaAugment.controller_networks
as
cont_n
import
MetaAugment.child_networks
as
cn
print
(
'
@@@ import successful
'
)
from
MetaAugment.main
import
create_toy
import
pickle
def
parse_users_learner_spec
(
auto_aug_learner
,
...
...
@@ -30,6 +32,11 @@ def parse_users_learner_spec(
learning_rate
,
max_epochs
):
"""
The website receives user inputs on what they want the aa_learner
to be. We take those hyperparameters and return an aa_learner
"""
if
auto_aug_learner
==
'
UCB
'
:
policies
=
aal
.
ucb_learner
.
generate_policies
(
num_policies
,
num_sub_policies
)
q_values
,
best_q_values
=
aal
.
ucb_learner
.
run_UCB1
(
...
...
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