Spaces:
No application file
No application file
Download lesson02/src/data/make_dataset.py from ItchyB/deep-RL-learning-course: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/ItchyB/deep-RL-learning-course/resolve/main/lesson02/src/data/make_dataset.py
- Command line
-
hf download hf://spaces/ItchyB/deep-RL-learning-course/lesson02/src/data/make_dataset.py
-
curl -L -o make_dataset.py https://huggingface.co/spaces/ItchyB/deep-RL-learning-course/resolve/main/lesson02/src/data/make_dataset.py
1.01 kB
| # -*- coding: utf-8 -*- | |
| import logging | |
| from pathlib import Path | |
| import click | |
| from dotenv import find_dotenv, load_dotenv | |
| def main(input_filepath, output_filepath): | |
| """ Runs data processing scripts to turn raw data from (../raw) into | |
| cleaned data ready to be analyzed (saved in ../processed). | |
| """ | |
| logger = logging.getLogger(__name__) | |
| logger.info('making final data set from raw data') | |
| if __name__ == '__main__': | |
| log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
| logging.basicConfig(level=logging.INFO, format=log_fmt) | |
| # not used in this stub but often useful for finding various files | |
| project_dir = Path(__file__).resolve().parents[2] | |
| # find .env automagically by walking up directories until it's found, then | |
| # load up the .env entries as environment variables | |
| load_dotenv(find_dotenv()) | |
| main() | |