Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 12, 2024
1 parent cb3dac7 commit a0d0eb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion missense_kinase_toolkit/ml/src/esm2/inference.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from transformers import AutoTokenizer, EsmForSequenceClassification

Expand Down
5 changes: 3 additions & 2 deletions missense_kinase_toolkit/ml/src/esm2/utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import argparse
import datetime
import os

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from datasets import Dataset, load_dataset
from sklearn.metrics import mean_squared_error
import matplotlib.pyplot as plt


def parsearg_utils():
Expand Down Expand Up @@ -234,7 +235,7 @@ def save_csv2csv(
-------
None
"""
df = df.loc[df["Mutant"].apply(lambda x: x is False), ].reset_index(drop=True)
df = df.loc[df["Mutant"].apply(lambda x: x is False),].reset_index(drop=True)
df_shuffle = df.copy().sample(frac=1, random_state=seed).reset_index(drop=True)
df_out = df_shuffle[[col_seq, col_lab]]
df_out.columns = ["seq", "label"]
Expand Down

0 comments on commit a0d0eb4

Please sign in to comment.