EC2 Default User
commited on
Commit
•
10ca462
1
Parent(s):
20e855d
Update labels to float
Browse files- README.md +2 -2
- deeploc-test.parquet +2 -2
- deeploc-train.parquet +2 -2
- deploc-val.parquet +2 -2
- prep.py +2 -2
README.md
CHANGED
@@ -13,8 +13,8 @@ Data downloaded and processed using the following Python script:
|
|
13 |
import pandas as pd
|
14 |
|
15 |
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)
|
16 |
-
df['labels'] = df[['Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Extracellular', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome', 'Plastid']].astype('
|
17 |
-
df['Membrane'] = df['Membrane'].astype('
|
18 |
df = df[['Kingdom', 'ACC', 'Sequence','Membrane','labels']]
|
19 |
|
20 |
train = df.sample(frac=0.8)
|
|
|
13 |
import pandas as pd
|
14 |
|
15 |
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)
|
16 |
+
df['labels'] = df[['Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Extracellular', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome', 'Plastid']].astype('float32').values.tolist()
|
17 |
+
df['Membrane'] = df['Membrane'].astype('float32')
|
18 |
df = df[['Kingdom', 'ACC', 'Sequence','Membrane','labels']]
|
19 |
|
20 |
train = df.sample(frac=0.8)
|
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:858112657d33dc6562c45f39bd5fa25fb49b358c054dbc3ca737c75b1ef5c0ba
|
3 |
+
size 1562923
|
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:2c6df4b9224e0b5fea8a68393e7b16662a6ceb8387381e1f463fa4c8ce45b28e
|
3 |
+
size 12945272
|
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:3fe952befd3353eae1824197d2434e5818014296e83605efc613139ab30e9cc1
|
3 |
+
size 1609584
|
prep.py
CHANGED
@@ -1,8 +1,8 @@
|
|
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('
|
5 |
-
df['Membrane'] = df['Membrane'].astype('
|
6 |
df = df[['Kingdom', 'ACC', 'Sequence','Membrane','labels']]
|
7 |
|
8 |
train = df.sample(frac=0.8)
|
|
|
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)
|