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
e7264ba1
Commit
e7264ba1
authored
2 years ago
by
Max Ramsay King
Browse files
Options
Downloads
Patches
Plain Diff
deleted evo files
parent
223dfe89
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend_react/react_app.py
+7
-5
7 additions, 5 deletions
backend_react/react_app.py
setupProxy.js
+11
-0
11 additions, 0 deletions
setupProxy.js
with
18 additions
and
5 deletions
backend_react/react_app.py
+
7
−
5
View file @
e7264ba1
...
@@ -24,8 +24,10 @@ import sys
...
@@ -24,8 +24,10 @@ import sys
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
..
'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
..
'
))
# import agents and its functions
# import agents and its functions
from
MetaAugment
import
UCB1_JC_py
as
UCB1_JC
from
..MetaAugment
import
UCB1_JC_py
as
UCB1_JC
from
MetaAugment
import
Evo_learner
as
Evo
from
..MetaAugment.autoaugment_learners
import
evo_learner
import
MetaAugment.controller_networks
as
cn
import
MetaAugment.autoaugment_learners
as
aal
print
(
'
@@@ import successful
'
)
print
(
'
@@@ import successful
'
)
# import agents and its functions
# import agents and its functions
...
@@ -158,9 +160,9 @@ def training():
...
@@ -158,9 +160,9 @@ def training():
best_q_values
=
np
.
array
(
best_q_values
)
best_q_values
=
np
.
array
(
best_q_values
)
elif
auto_aug_learner
==
'
Evolutionary Learner
'
:
elif
auto_aug_learner
==
'
Evolutionary Learner
'
:
network
=
Evo
.
Learn
er
(
fun_num
=
num_funcs
,
p_bins
=
1
,
m_bins
=
1
,
sub_num_pol
=
1
)
network
=
cn
.
evo_controller
.
evo_controll
er
(
fun_num
=
num_funcs
,
p_bins
=
1
,
m_bins
=
1
,
sub_num_pol
=
1
)
child_network
=
E
vo
.
LeNet
()
child_network
=
aal
.
e
vo
.
LeNet
()
learner
=
E
vo
.
E
vo
lutionary
_learner
(
network
=
network
,
fun_num
=
num_funcs
,
p_bins
=
1
,
mag_bins
=
1
,
sub_num_pol
=
1
,
ds
=
ds
,
ds_name
=
ds_name
,
exclude_method
=
exclude_method
,
child_network
=
child_network
)
learner
=
aal
.
e
vo
.
e
vo_learner
(
network
=
network
,
fun_num
=
num_funcs
,
p_bins
=
1
,
mag_bins
=
1
,
sub_num_pol
=
1
,
ds
=
ds
,
ds_name
=
ds_name
,
exclude_method
=
exclude_method
,
child_network
=
child_network
)
learner
.
run_instance
()
learner
.
run_instance
()
elif
auto_aug_learner
==
'
Random Searcher
'
:
elif
auto_aug_learner
==
'
Random Searcher
'
:
pass
pass
...
...
This diff is collapsed.
Click to expand it.
setupProxy.js
0 → 100644
+
11
−
0
View file @
e7264ba1
const
{
createProxyMiddleware
}
=
require
(
'
http-proxy-middleware
'
);
module
.
exports
=
function
(
app
)
{
app
.
use
(
'
/api
'
,
createProxyMiddleware
({
target
:
'
http://localhost:3000
'
,
changeOrigin
:
true
,
})
);
};
\ No newline at end of file
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