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

Resampling data #8

Closed
ChrisZeThird opened this issue Jun 8, 2023 · 6 comments
Closed

Resampling data #8

ChrisZeThird opened this issue Jun 8, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@ChrisZeThird
Copy link
Member

As shown in issue #7 the angles are not well distributed with a strong imbalance for angles between 0.41 and 0.48. This issue explores resampling for better training.
image

@ChrisZeThird ChrisZeThird added this to the Testing network milestone Jun 8, 2023
@ChrisZeThird
Copy link
Member Author

Average is 0.424: The network learns by heart and it learns the average value.

@ChrisZeThird
Copy link
Member Author

ChrisZeThird commented Jun 9, 2023

Method to find angle occurrence:

# Find angle occurrence
unique_angles, counts = np.unique(np.around(angle_list, 3), return_counts=True)
stat = [(angle, count) for angle, count in zip(unique_angles, counts) if count > threshold]

Can be useful.

@ChrisZeThird
Copy link
Member Author

Resampling is successful, still need to test to train the network on it.
image

@ChrisZeThird
Copy link
Member Author

Results on training and testing

MSE is now bigger than before

image

Resampling not enough to avoid network to learn by heart

image

@ChrisZeThird
Copy link
Member Author

ChrisZeThird commented Jun 9, 2023

Experimenting with parameters

MSE still at 0.01:
image

Changed the parameter for resampling:
image

Network still learns by heart:
image

@ChrisZeThird
Copy link
Member Author

I can't resample too much otherwise I won't have enough data to train the network on. Need to explore other issues.

@ChrisZeThird ChrisZeThird added the enhancement New feature or request label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant