-
Notifications
You must be signed in to change notification settings - Fork 86
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
fix pca #1267
Merged
fix pca #1267
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,44 @@ | ||
from fedot.core.repository.tasks import TaskTypesEnum | ||
|
||
MINIMAL_SECONDS_FOR_TUNING = 15 | ||
"""Minimal seconds for tuning.""" | ||
|
||
DEFAULT_TUNING_ITERATIONS_NUMBER = 100000 | ||
"""Default number of tuning iterations.""" | ||
|
||
DEFAULT_API_TIMEOUT_MINUTES = 5.0 | ||
"""Default API timeout in minutes.""" | ||
|
||
DEFAULT_FORECAST_LENGTH = 30 | ||
"""Default forecast length.""" | ||
|
||
COMPOSING_TUNING_PROPORTION = 0.6 | ||
"""Proportion of data used for composing tuning.""" | ||
|
||
BEST_QUALITY_PRESET_NAME = 'best_quality' | ||
"""Name of the preset for best quality.""" | ||
|
||
FAST_TRAIN_PRESET_NAME = 'fast_train' | ||
"""Name of the preset for fast training.""" | ||
|
||
AUTO_PRESET_NAME = 'auto' | ||
"""Name of the preset for auto tuning.""" | ||
|
||
MINIMAL_PIPELINE_NUMBER_FOR_EVALUATION = 100 | ||
"""Minimal number of pipelines for evaluation.""" | ||
|
||
MIN_NUMBER_OF_GENERATIONS = 3 | ||
"""Minimum number of generations.""" | ||
|
||
FRACTION_OF_UNIQUE_VALUES = 0.95 | ||
"""Fraction of unique values.""" | ||
|
||
default_data_split_ratio_by_task = { | ||
TaskTypesEnum.classification: 0.8, | ||
TaskTypesEnum.regression: 0.8, | ||
TaskTypesEnum.ts_forecasting: 0.5 | ||
} | ||
"""Default data split ratio by task.""" | ||
|
||
PCA_MIN_THRESHOLD_TS = 7 | ||
"""Minimum threshold for PCA in TS forecasting.""" |
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
Oops, something went wrong.
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.
Не будет проблем с нецелым числом n_components?
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.
If 0 < n_components < 1 and svd_solver == 'full', select the number of components such that the amount of variance that needs to be explained is greater than the percentage specified by n_components.
У нас 0 < n_components < 1