Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Swain Lab
aliby
postprocessor
Commits
0e32136a
Commit
0e32136a
authored
3 years ago
by
Arin Wongprommoon
Browse files
Options
Downloads
Patches
Plain Diff
[documentation] Explain parameter that can seed train-test splitting
parent
72bc72b8
No related branches found
No related tags found
1 merge request
!3
mi process estimates mutual information
Pipeline
#10992
passed with warnings
3 years ago
Stage: test
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
postprocessor/core/processes/mi.py
+9
-0
9 additions, 0 deletions
postprocessor/core/processes/mi.py
with
9 additions
and
0 deletions
postprocessor/core/processes/mi.py
+
9
−
0
View file @
0e32136a
...
...
@@ -58,6 +58,14 @@ class miParameters(ParametersABC):
the optimal gamma is one of the boundary values.
See https://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html
train_test_split_seeding: boolean, optional (default: False)
If True, force a random state for the train-test split in each bootstrap. This is
useful in case the user requires reproducibility e.g. code testing.
See https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html
"""
def
__init__
(
...
...
@@ -196,6 +204,7 @@ class mi(ProcessABC):
# find mutual information for each bootstrapped dataset
mi
=
np
.
empty
(
self
.
n_bootstraps
)
for
i
in
range
(
self
.
n_bootstraps
):
# force random state, useful for code testing/reproducibility
if
self
.
train_test_split_seeding
:
random_state
=
i
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment