Skip to content
Snippets Groups Projects
Commit e98242e1 authored by Michael's avatar Michael
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:oracular
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install python3-pip python3-venv
COPY requirements.txt /model/
RUN python3 -m venv /model
RUN /model/bin/pip3 install -r /model/requirements.txt
COPY model.py /model/
ENTRYPOINT ["/model/bin/python3", "/model/model.py"]
CMD ["--input=/data/test.csv", "--output=/data/aki.csv"]
#!/usr/bin/env python3
import argparse
import csv
import random
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--input", default="test.csv")
parser.add_argument("--output", default="aki.csv")
flags = parser.parse_args()
r = csv.reader(open(flags.input))
w = csv.writer(open(flags.output, "w"))
w.writerow(("aki",))
next(r) # skip headers
for _ in r:
# TODO: Implement a better model
w.writerow((random.choice(["y", "n"]),))
if __name__ == "__main__":
main()
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment