Team member: 鄧昱辰、林冠妤、陳瑾叡、游孟純、劉子豪
- /data
- /external_data
- training_data.csv
- pred.csv
- Lots of data
- /configs
- catbr.yaml
- lgbmr.yaml
- xgbr.yaml
- /scripts/
- run.sh
- /src
- features/
- __init__.py
- mean_dist.py
- merge_lib_can_del.py
- n_facilities_v2.py
- preprocessing_edu_v2.py
- soc_econ.py
- model/
- __init__.py
- stacking.py
- tuning.py
- __init__.py
- encoder.py
- preproc.py
- main.py
- pipeline.py
- script.py
- visualization.py
- /test
- map.R
- .gitignore
- .pre_commit_config.yaml
- README.md
- requirements.txt
- requirements_dev.txt
- columns.json
python3 -m venv <venv_name> python=3.10
source <venv_name>/bin/activate
pip3 install -r requirements.txt
Examples of functions calling inside /src
from .utils import (
load_data, one_hot_encoding,
add_twd97_coordinates_to_dataframe as add_twd97,
add_wgs84_coordinates_to_dataframe as add_wgs84
)
Examples of inheritance of classes inside /src
from .father_class import FatherClass
class YourClass(FatherClass):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Examples of src/predict.py
python -m src.predict --dims <number of features>
argument --dims
is the number of features in use.
Plz execute on the root directory
python -m src.pipeline