Skip to content

Team member: 鄧昱辰、林冠妤、陳瑾叡、游孟純、劉子豪

Notifications You must be signed in to change notification settings

AbnerTeng/FW23_AICUP

Repository files navigation

FW23_AICUP

Team member: 鄧昱辰、林冠妤、陳瑾叡、游孟純、劉子豪

Module structure

- /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

Create virtual environment (optional but suggest)

python3 -m venv <venv_name> python=3.10
source <venv_name>/bin/activate

Used packages

pip3 install -r requirements.txt

Function using

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.

Execute

Plz execute on the root directory

python -m src.pipeline

About

Team member: 鄧昱辰、林冠妤、陳瑾叡、游孟純、劉子豪

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •