-
Couldn't load subscription status.
- Fork 11
Multiline refactor #195
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
Multiline refactor #195
Conversation
|
Hello @YamLyubov! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2023-10-02 13:26:23 UTC |
|
Hello @YamLyubov! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2023-10-05 12:02:12 UTC |
Codecov Report
@@ Coverage Diff @@
## main #195 +/- ##
==========================================
- Coverage 74.35% 73.76% -0.59%
==========================================
Files 130 131 +1
Lines 7760 7826 +66
==========================================
+ Hits 5770 5773 +3
- Misses 1990 2053 +63
|
… find_best_running_fitness)
254d37c to
b535c72
Compare
| node_types = ['X'] | ||
| for graph_name, num_nodes in product(graph_names, graph_sizes): | ||
| experiment_id = f'Experiment [graph={graph_name} graph_size={num_nodes}]' | ||
| file_name = f'{optimizer_cls.__name__[:-9]}_{graph_name}_n{num_nodes}_iter{trial_iterations}' |
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.
это так слово Optimizer вырезается? или почему именно 9
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.
Абсолютно точно)))
|
|
||
|
|
||
| def generate_dag(n): | ||
| g = nx.gnp_random_graph(n, p=0.5, directed=True) |
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.
там чел в комментах к этому решению писал, что на супер больших графах оно ломается. нам-то не принципиально, но пометку я бы оставила
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.
|
|
||
| class RandomMutationSearchOptimizer(RandomSearchOptimizer): | ||
| class PopulationalRandomMutationOptimizer(PopulationalOptimizer): | ||
| """ |
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.
я на написала побольше текста про то зачем такой оптимизатор и, например, где он был использован
|
|
||
| def __init__(self, | ||
| historical_fitnesses: Dict[str, Sequence[Sequence[Union[float, Sequence[float]]]]], | ||
| metric_names, |
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.
тип
| self.log = default_log(self) | ||
|
|
||
| @staticmethod | ||
| def from_saved_histories(experiment_folders: List[str], root_path: os.PathLike): |
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.
тип того, что возвращает
| # Required | ||
| version: 2 | ||
|
|
||
| build: |
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.
бтв кажется, оно уже заработало и без этого
Adds:
PopulationalRandomMutationOptimizerFixes: