-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from MuhammedHasan/master
bug fix #139 and refactoring
- Loading branch information
Showing
22 changed files
with
272 additions
and
859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
from kipoi.model import BaseModel | ||
import numpy as np | ||
from mmsplice import LINEAR_MODEL | ||
from mmsplice.utils.postproc import transform | ||
|
||
# Model to predict delta logit PSI | ||
|
||
class MMSpliceModel(BaseModel): | ||
|
||
def __init__(self): | ||
'''Model to predict delta logit PSI''' | ||
|
||
self.model = LINEAR_MODEL | ||
|
||
def predict_on_batch(self, inputs): | ||
X = transform(inputs, False) | ||
pred = self.model.predict(X) | ||
return pred | ||
return LINEAR_MODEL.predict(transform(inputs, False)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ dependencies: | |
- numpy | ||
pip: | ||
- scikit-learn | ||
- mmsplice>=0.2.7 | ||
schema: | ||
inputs: | ||
shape: (5, ) | ||
|
Oops, something went wrong.