Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Supervised MultiModal Integration Tool
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
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Baptiste Bauvin
Supervised MultiModal Integration Tool
Commits
0527b7bc
Commit
0527b7bc
authored
6 years ago
by
Baptiste Bauvin
Browse files
Options
Downloads
Patches
Plain Diff
Debugged noise with multicore
parent
8912f819
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
multiview_platform/MonoMultiViewClassifiers/ExecClassif.py
+3
-1
3 additions, 1 deletion
multiview_platform/MonoMultiViewClassifiers/ExecClassif.py
multiview_platform/MonoMultiViewClassifiers/utils/GetMultiviewDb.py
+4
-4
4 additions, 4 deletions
...platform/MonoMultiViewClassifiers/utils/GetMultiviewDb.py
with
7 additions
and
5 deletions
multiview_platform/MonoMultiViewClassifiers/ExecClassif.py
+
3
−
1
View file @
0527b7bc
...
...
@@ -459,8 +459,10 @@ def execClassif(arguments):
getDatabase
=
execution
.
getDatabaseFunction
(
args
.
name
,
args
.
type
)
DATASET
,
LABELS_DICTIONARY
=
getDatabase
(
args
.
views
,
args
.
pathF
,
args
.
name
,
args
.
CL_nbClass
,
DATASET
,
LABELS_DICTIONARY
,
datasetname
=
getDatabase
(
args
.
views
,
args
.
pathF
,
args
.
name
,
args
.
CL_nbClass
,
args
.
CL_classes
,
randomState
,
args
.
full
,
args
.
add_noise
,
args
.
noise_std
)
args
.
name
=
datasetname
splits
=
execution
.
genSplits
(
DATASET
.
get
(
"
Labels
"
).
value
,
args
.
CL_split
,
statsIterRandomStates
)
...
...
This diff is collapsed.
Click to expand it.
multiview_platform/MonoMultiViewClassifiers/utils/GetMultiviewDb.py
+
4
−
4
View file @
0527b7bc
...
...
@@ -125,7 +125,7 @@ def getPlausibleDBhdf5(features, pathF, name, NB_CLASS=3, LABELS_NAME="", random
datasetFile
.
close
()
datasetFile
=
h5py
.
File
(
pathF
+
"
Plausible.hdf5
"
,
"
r
"
)
LABELS_DICTIONARY
=
{
0
:
"
No
"
,
1
:
"
Yes
"
,
2
:
"
Maybe
"
}
return
datasetFile
,
LABELS_DICTIONARY
return
datasetFile
,
LABELS_DICTIONARY
,
"
Plausible
"
# def getFakeDBhdf5(features, pathF, name, NB_CLASS, LABELS_NAME, randomState):
...
...
@@ -322,10 +322,10 @@ def getClassicDBhdf5(views, pathF, nameDB, NB_CLASS, askedLabelsNames, randomSta
enumerate
(
datasetFile
.
get
(
"
Labels
"
).
attrs
[
"
names
"
]))
if
add_noise
:
datasetFile
=
add_gaussian_noise
(
datasetFile
,
randomState
,
pathF
,
dataset_name
,
noise_std
)
datasetFile
,
dataset_name
=
add_gaussian_noise
(
datasetFile
,
randomState
,
pathF
,
dataset_name
,
noise_std
)
else
:
pass
return
datasetFile
,
labelsDictionary
return
datasetFile
,
labelsDictionary
,
dataset_name
def
add_gaussian_noise
(
dataset_file
,
random_state
,
path_f
,
dataset_name
,
noise_std
=
0.15
):
...
...
@@ -353,7 +353,7 @@ def add_gaussian_noise(dataset_file, random_state, path_f, dataset_name, noise_s
noised_data
=
np
.
where
(
noised_data
>
view_limits
[:,
1
],
view_limits
[:,
1
],
noised_data
)
noisy_dataset
[
view_name
][...]
=
noised_data
final_shape
=
noised_data
.
shape
return
noisy_dataset
return
noisy_dataset
,
dataset_name
+
"
_noised
"
...
...
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