Repository navigation
Regression - #244
Regression#244
Conversation
…, redo representiveness and diversity, otherwise syntactical changes.
…data set settings
| return kl_div | ||
|
|
||
|
|
||
| def cross_entropy( |
There was a problem hiding this comment.
I wouldn't expect to import the cross_entropy from pool.regression._information_gain_maximization . Maybe you can find a more suitable location for this function?
There was a problem hiding this comment.
I agree with Adrian.
Is there a corresponding function from scikit-learn?
| return best_indices | ||
|
|
||
|
|
||
| def combine_ranking(*iter_ranking, rank_method=None, rank_per_batch=False): |
There was a problem hiding this comment.
Maybe move to representativeness and diversirty? Or do you think that this method will be used by others, e.g., for strategy combination?
…f conditional_expect incomplete
|
|
||
| References | ||
| ---------- | ||
| [1] Kaeding, Christoph and Rodner, Erik and Freytag, Alexander and Mothes, |
| ) | ||
|
|
||
| # count the number of arguments that have no default value | ||
| n_free_params = len( |
There was a problem hiding this comment.
| n_free_params = len( | |
| n_actual_free_parameters = len( |
What is the meaning of free parameters? Do you just mean the mandatory parameters without default values? Then maybe use n_mandatory_parameters and n_actual_mandatory_parameters.
|
|
||
|
|
||
| def sample_generator_1d( | ||
| n_samples, *intervals, interval_density=1, random_state=None |
There was a problem hiding this comment.
| n_samples, *intervals, interval_density=1, random_state=None | |
| n_samples, intervals, interval_density=1, random_state=None |
Define intervals directly as list similar to centers in sklearn.data_sets.make_blobs.
|
|
||
|
|
||
| def gaussian_noise_generator_1d( | ||
| X, *intervals, interval_std=1, default_std=0.5, random_state=None |
There was a problem hiding this comment.
| X, *intervals, interval_std=1, default_std=0.5, random_state=None | |
| X, intervals, interval_std=1, default_std=0.5, random_state=None |
Define intervals directly as list similar to centers in sklearn.data_sets.make_blobs.
| @@ -0,0 +1,116 @@ | |||
| import numpy as np | |||
There was a problem hiding this comment.
We need discuss whether this file is necessary. make_blobs can also be used to generate such data sets.
| check_type(contour_dict, "contour_dict", dict) | ||
| contour_args.update(contour_dict) | ||
| return contour_args | ||
|
|
No description provided.