EC2 Default User
commited on
Commit
•
51a44a7
1
Parent(s):
10ca462
revert back to 1-hot encoded labels
Browse files- deeploc-test.parquet +2 -2
- deeploc-train.parquet +2 -2
- deploc-val.parquet +2 -2
- prep.py +0 -2
deeploc-test.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e0443338716860843f3babf782119aa5999f36125f4d8e467c363f04acdacb1
|
3 |
+
size 1608942
|
deeploc-train.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdff9d5baef6dd562f54f0bed098f8c5d40a9062c9110639337ae7f014fcdf1c
|
3 |
+
size 12856595
|
deploc-val.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88e50248e25b3900459ad6f43e9052c55206aedefc4fb76ebf4c6db6be7ab632
|
3 |
+
size 1696313
|
prep.py
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
import pandas as pd
|
2 |
|
3 |
df = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)
|
4 |
-
df['labels'] = df[['Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Extracellular', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome', 'Plastid']].astype('float32').values.tolist()
|
5 |
df['Membrane'] = df['Membrane'].astype('float32')
|
6 |
-
df = df[['Kingdom', 'ACC', 'Sequence','Membrane','labels']]
|
7 |
|
8 |
train = df.sample(frac=0.8)
|
9 |
df = df.drop(train.index)
|
|
|
1 |
import pandas as pd
|
2 |
|
3 |
df = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)
|
|
|
4 |
df['Membrane'] = df['Membrane'].astype('float32')
|
|
|
5 |
|
6 |
train = df.sample(frac=0.8)
|
7 |
df = df.drop(train.index)
|