UBC-MDS / abalone_age_classification

In this project, we are classifying abalone snails into "young" and "old" according to their number of rings based on input features such as abalone's gender, height with meat in shell, the weight of the shell, etc.
https://ubc-mds.github.io/abalone_age_classification/
MIT License
0 stars 8 forks source link

Eda script (incomplete) #34

Closed kphaterp closed 2 years ago

kphaterp commented 2 years ago

I've added the eda script. Unfortunately, I was having issues with importing docopt (which I will be going to office hours in the coming days to resolve) so I was not able to test whether the script works with docopt.

However, I tested the remainder of the code by manually inputting the paths to read the data and save the figure png's and the remainder of the code is working. If someone could test whether the script is working as intended with docopt, that would be great.

veerupandey commented 2 years ago

@kphaterp Please make the following changes and try.

In header

"""This script constructs various exploratory data visualizations,
and tables.
Usage: eda.py --data_path=<data_path> --outputfile=<outputfile>

Options:
--data_path=<data_path>          The path to read the data in from.
--outputfile=<outputfile>                The path to save the images to.
"""

In main:

if __name__ == "__main__":
    data_path = opt["--data_path"]
    output_file = opt["--outputfile"]
    main(data_path, output_file)
veerupandey commented 2 years ago

Merging it now. I will push the changes in a separate pull request.