Skip to content

Conversation

@talumbau
Copy link

Force normalization to be only one training set uniformly across notebook.

Force normalization to be only one training set uniformly across
notebook.
@talumbau
Copy link
Author

Hey @rickecon @jdebacker I think this is a good fix for the NN training. Here is what I get with the fix:

image

I changed the normalization function like this:

def normalize_output(data, data_max=None, data_min=None):
    """Normalizes the output data to a [0, 1] range."""
    if data_max is None:
        data_max = np.max(data)
    if data_min is None:
        data_min = np.min(data)
    return (data - data_min) / (data_max - data_min)

and then just force the max and min to be only the values from the training set partition. I think that was problem. Take a look and let me know what you think!

@talumbau
Copy link
Author

Ha! I see this is already fixed in #2

@jdebacker
Copy link

@talumbau Yes, we finally caught this. But still having trouble with fit. Will send email update.

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

Successfully merging this pull request may close these issues.

2 participants