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

GP() argument after ** must be a mapping #1

Open
CreamyR opened this issue Apr 8, 2019 · 1 comment
Open

GP() argument after ** must be a mapping #1

CreamyR opened this issue Apr 8, 2019 · 1 comment

Comments

@CreamyR
Copy link

CreamyR commented Apr 8, 2019

When i run the "RGAN.py",there's an error said
" samples, pdf = GP(**data_options, kernel='rbf')
TypeError: GP() argument after ** must be a mapping, not NoneType".

While if i run the "data_utils.py",process finished with no wrong.
So,i want to know how to deal with the issue.Thanks very much.

1

2

@ngovanmao
Copy link

you can modify the RGAN with the following code:

diff --git a/RGAN.py b/RGAN.py
index 2c514e1..7ef8afb 100644
--- a/RGAN.py
+++ b/RGAN.py
@@ -27,7 +27,7 @@ if settings['settings_file']: settings = utils.load_settings_from_file(settings)
 # --- get data, split --- #
 # samples, pdf, labels = data_utils.get_samples_and_labels(settings)

-samples, pdf, labels = data_utils.get_data(settings['data'], settings['seq_length'], settings['seq_step'], settings['num_signals'])
+samples, pdf, labels = data_utils.get_data(settings['data'], settings['seq_length'], settings['seq_step'], settings['num_signals'], settings)

 # --- training sample --- #
 # --- save settings, data --- #

It will run OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants