Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kaggle Phytoplankton
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
Show more breadcrumbs
Messaoudi Rayan
Kaggle Phytoplankton
Commits
a14646d9
Commit
a14646d9
authored
2 years ago
by
Messaoudi Rayan
Browse files
Options
Downloads
Patches
Plain Diff
Delete Create_Subset.py
parent
71d527b8
No related branches found
No related tags found
1 merge request
!1
Master into main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Create_Subset.py
+0
-36
0 additions, 36 deletions
Create_Subset.py
with
0 additions
and
36 deletions
Create_Subset.py
deleted
100644 → 0
+
0
−
36
View file @
71d527b8
# Standard imports
import
os
import
sys
import
logging
import
pathlib
from
typing
import
Union
import
struct
from
datetime
import
datetime
# import multiprocessing
from
multiprocessing
import
Lock
# from multiprocessing.synchronize import Lock
# External imports
import
numpy
as
np
import
tqdm
import
torch
import
torch.utils.data
as
data
from
bindataset
import
Dataset
_DEFAULT_TRAIN_FILEPATH
=
"
/mounts/Datasets3/2022-ChallengePlankton/sub_2CMEMS-MEDSEA-2010-2016-training.nc.bin
"
_DEFAULT_TEST_FILEPATH
=
(
"
/mounts/Datasets3/2022-ChallengePlankton/sub_2CMEMS-MEDSEA-2017-testing.nc.bin
"
)
_ENCODING_LINEAR
=
"
I
"
_ENCODING_INDEX
=
"
I
"
# h(short) with 2 bytes should be sufficient
_ENCODING_OFFSET_FORMAT
=
""
_ENCODING_ENDIAN
=
"
<
"
indices
=
[
1
,
2
,
3
]
data
.
Subset
(
Dataset
,
indices
)
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