EC2 Default User commited on
Commit
51a44a7
1 Parent(s): 10ca462

revert back to 1-hot encoded labels

Browse files
deeploc-test.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:858112657d33dc6562c45f39bd5fa25fb49b358c054dbc3ca737c75b1ef5c0ba
3
- size 1562923
 
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:2c6df4b9224e0b5fea8a68393e7b16662a6ceb8387381e1f463fa4c8ce45b28e
3
- size 12945272
 
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:3fe952befd3353eae1824197d2434e5818014296e83605efc613139ab30e9cc1
3
- size 1609584
 
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)