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
9fc28b3d
Commit
9fc28b3d
authored
2 years ago
by
Sun Jin Kim
Browse files
Options
Downloads
Patches
Plain Diff
privatize further mtehods in evo_learner
parent
91542840
No related branches found
No related tags found
No related merge requests found
Pipeline
#272346
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MetaAugment/autoaugment_learners/evo_learner.py
+5
-5
5 additions, 5 deletions
MetaAugment/autoaugment_learners/evo_learner.py
with
5 additions
and
5 deletions
MetaAugment/autoaugment_learners/evo_learner.py
+
5
−
5
View file @
9fc28b3d
...
@@ -194,11 +194,11 @@ class evo_learner(aa_learner):
...
@@ -194,11 +194,11 @@ class evo_learner(aa_learner):
def
_set_up_instance
(
self
,
train_dataset
,
test_dataset
,
child_network_architecture
):
def
_set_up_instance
(
self
,
train_dataset
,
test_dataset
,
child_network_architecture
):
"""
"""
Initialises GA instance, as well as fitness and on_generation functions
Initialises GA instance, as well as fitness and
_
on_generation functions
"""
"""
def
fitness_func
(
solution
,
sol_idx
):
def
_
fitness_func
(
solution
,
sol_idx
):
"""
"""
Defines the fitness function for the parent selection
Defines the fitness function for the parent selection
...
@@ -252,7 +252,7 @@ class evo_learner(aa_learner):
...
@@ -252,7 +252,7 @@ class evo_learner(aa_learner):
return
fit_val
return
fit_val
def
on_generation
(
ga_instance
):
def
_
on_generation
(
ga_instance
):
"""
"""
Prints information of generational fitness
Prints information of generational fitness
...
@@ -273,5 +273,5 @@ class evo_learner(aa_learner):
...
@@ -273,5 +273,5 @@ class evo_learner(aa_learner):
num_parents_mating
=
self
.
num_parents_mating
,
num_parents_mating
=
self
.
num_parents_mating
,
initial_population
=
self
.
initial_population
,
initial_population
=
self
.
initial_population
,
mutation_percent_genes
=
0.1
,
mutation_percent_genes
=
0.1
,
fitness_func
=
fitness_func
,
_
fitness_func
=
_
fitness_func
,
on_generation
=
on_generation
)
_
on_generation
=
_
on_generation
)
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