Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  dvc git github
Abhi ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
src
ca16419ed2
Basic skeleton is ready
1 year ago
a31d71f1c3
Create .gitignore
1 year ago
e1fe19ea30
Create LICENSE
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
ca16419ed2
Basic skeleton is ready
1 year ago
Storage Buckets

README.md

You have to be logged in to leave a comment. Sign In

#deep Classifier project

Create folder structure using below code

import os from pathlib import Path import logging

logging.basicConfig(level=logging.INFO, format='[%(asctime)s]:%(message)s:') package_name = "deepClassifier"

list_of_files = [ ".github/workflows/.gitkeep", f"src/{package_name}/init.py", f"src/{package_name}/components/init.py", f"src/{package_name}/utils/init.py", f"src/{package_name}/config/init.py", f"src/{package_name}/pipeline/init.py", f"src/{package_name}/entity/init.py", f"src/{package_name}/constants/init.py", f"src/{package_name}/research/init.py", f"src/{package_name}/example/init.py", "config/config.yaml", "dvc.yaml", "params.yaml", "init_setup.sh", "requirements.txt", "requirements_dev.txt", "setup.py", "setup.cfg", "pyproject.toml", "tox.ini", "research/trials.ipynb" ]

for filepath in list_of_files: filepath = Path(filepath) filedir, filename = os.path.split(filepath) if filedir != "": os.makedirs(filedir,exist_ok=True) logging.info(f"Creating directory: {filedir} for file:{filename}")

if (not os.path.exists(filepath)) or (os.path.getsize(filepath) == 0):
    with open(filepath, "w") as f:
        pass # create an empty file
        logging.info(f"Creating directory:{filedir}")

else:
    logging.info(f"{filename} already exists")

Folder structure code ends here

Tip!

Press p or to see the previous file or, n or to see the next file

About

No description

Collaborators 1

Comments

Loading...