Commit c234ff23 authored by Christian Marius Lillelund's avatar Christian Marius Lillelund
Browse files

updated notebooks

parent 2af58327
......@@ -70,4 +70,4 @@ def main():
print(f"Processed data dictionary: {pt.PROCESSED_DATA_DIR}\n")
if __name__ == "__main__":
main()
\ No newline at end of file
main()
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -35,4 +35,4 @@ class JWTBearer(HTTPBearer):
payload = None
if payload:
is_token_valid = True
return is_token_valid
\ No newline at end of file
return is_token_valid
......@@ -114,4 +114,4 @@ def main():
write_csv(df, file_path, file_name)
if __name__ == "__main__":
main()
\ No newline at end of file
main()
......@@ -58,4 +58,4 @@ def main():
write_csv(df, file_path, file_name)
if __name__ == "__main__":
main()
\ No newline at end of file
main()
......@@ -160,4 +160,5 @@ def create_union_of_ids(*args: Tuple) -> List[str]:
return ids
if __name__ == "__main__":
main()
\ No newline at end of file
main()
\ No newline at end of file
......@@ -137,4 +137,4 @@ def read_csv(file_path, file_name, conveters=None,
skiprows=skiprows)
if __name__ == '__main__':
main()
\ No newline at end of file
main()
......@@ -25,4 +25,4 @@ RAW_DATA_DIR_TEST = Path.joinpath(ROOT_DIR, 'data/raw/test')
PROCESSED_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/processed')
PROCESSED_EMB_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/processed/embeddings')
INTERIM_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/interim')
EXTERNAL_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/external')
\ No newline at end of file
EXTERNAL_DATA_DIR = Path.joinpath(ROOT_DIR, 'data/external')
......@@ -83,4 +83,4 @@ class Cleaner2021(BaseCleaner):
mask = (df['LendDate'] >= '1900-01-01') & (df['LendDate'] <= pd.Timestamp('today'))
df = df.loc[mask]
df = df[df['DevISOClass'].isin(iso_classes.DevISOClass)]
return df
\ No newline at end of file
return df
......@@ -176,4 +176,4 @@ class AlarmDataLoader(BaseDataLoader):
dtype=[('Status', 'bool'), ('Days_to_alarm', '>i4')])
self.X = pd.DataFrame(X)
self.y = np.array(y)
return self
\ No newline at end of file
return self
......@@ -112,4 +112,4 @@ def write_cv_plot(means: List, stds: List, metric: str,
fig.suptitle(f"{os.path.splitext(title)[0]} {subtitle}")
plt.setp(axs[-1, :], xlabel='Seed')
plt.setp(axs[:, 0], ylabel=metric)
plt.savefig(outfile, format='pdf', bbox_inches="tight")
\ No newline at end of file
plt.savefig(outfile, format='pdf', bbox_inches="tight")
......@@ -71,4 +71,4 @@ def test_clean_patient_data():
'0', '#VALUE!', '681']})
res = Cleaner2021().clean_patient_data(df_patient)
assert not res.empty
assert len(res) == 1
\ No newline at end of file
assert len(res) == 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment