-
Notifications
You must be signed in to change notification settings - Fork 6
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
Optional altitude #131
Merged
Merged
Optional altitude #131
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8b29753
Gives the option to use zd or alt for pointing and source position
LukasNickel 8296996
Makes sure the disp scripts works with either ud or alt provided
LukasNickel 631e725
Fixes the check for correctly specified pointing columns
LukasNickel 7da1a07
Merge branch 'master' into optional_altitude
LukasNickel dfbfe2c
Merge branch 'master' of github.com:fact-project/aict-tools into opti…
LukasNickel 4a616ef
Use alt for CTA, zd for FACT
LukasNickel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# seed for the random number generators, to make things reproducible | ||
seed: 0 | ||
|
||
# define th number of cross validations to perform | ||
n_cross_validations : 5 | ||
|
||
|
||
disp: | ||
disp_regressor : | | ||
ensemble.RandomForestRegressor( | ||
n_estimators=30, | ||
max_features='sqrt', | ||
n_jobs=-1, | ||
max_depth=20, | ||
) | ||
|
||
sign_classifier: | | ||
ensemble.RandomForestClassifier( | ||
n_estimators=30, | ||
max_features='sqrt', | ||
n_jobs=-1, | ||
max_depth=20, | ||
) | ||
|
||
coordinate_transformation: FACT | ||
# columns containing coordinates of the source and of the pointing | ||
source_az_column: source_position_az | ||
source_alt_column: source_position_alt | ||
pointing_az_column: pointing_position_az | ||
pointing_alt_column: pointing_position_alt | ||
|
||
|
||
# randomly sample the data if you dont want to use the whole set | ||
n_signal : 500 | ||
|
||
features: | ||
- concentration_cog | ||
- concentration_core | ||
- delta | ||
- leakage1 | ||
- leakage2 | ||
- length | ||
- skewness_long | ||
- kurtosis_long | ||
- num_islands | ||
- size | ||
- width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could do this in the
preprocessing.py
, add a function that fills the zenith into the dataframe.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
Was debating that. I really dont know which way I prefer especially with regards to #117.
Both ways feel hacky tbh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or do it before the
if
so that the code is not duplicated.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean one
if
clause before the function call instead of two clauses in the function call?Something like
Or the other way around for CTA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my review comment. Now, I came to think more about it, we should just use altitude for CTA (so change the cta function to take altitude) and convert from zenith to altitude if zenith is given for cta (but there should be no real reason for that to happen).