Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Andrew Stirn
commited on
Commit
·
d99c64e
1
Parent(s):
47e7aeb
web tool titration clipping slightly wider than testing
Browse files
tiger.py
CHANGED
|
@@ -125,7 +125,7 @@ def prediction_transform(predictions: np.array, **params):
|
|
| 125 |
|
| 126 |
|
| 127 |
def titration_ratio(guide: np.array, parent: np.array):
|
| 128 |
-
return 1 - np.clip(parent - guide, a_min=0.
|
| 129 |
|
| 130 |
|
| 131 |
def predict_on_target(transcript_seq: str, model: tf.keras.Model):
|
|
|
|
| 125 |
|
| 126 |
|
| 127 |
def titration_ratio(guide: np.array, parent: np.array):
|
| 128 |
+
return 1 - np.clip(parent - guide, a_min=0.0, a_max=1.0)
|
| 129 |
|
| 130 |
|
| 131 |
def predict_on_target(transcript_seq: str, model: tf.keras.Model):
|