Skip to content

Efficiently set up your experimental environment with features such as logging, parameter management, code backup, and algorithms.

License

Notifications You must be signed in to change notification settings

fairyshine/WillMindS.AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WillMindS

WillMindS

Efficiently set up your experimental environment with features such as logging, parameter management, code backup, and algorithms.

WillMindS is portable and designed primarily for personal use, serving as a helpful reference.

How to use

Follow these steps to integrate WillMindS into your project:

  1. Copy the WillMindS directory: Move the WillMindS directory into your src/ path.

  2. Install dependencies: Run the following command to install the required packages:

pip install -r src/WillMindS/requirements.txt
  1. Create configuration directory: Make a new directory named config/, and create a file basic.yaml based on the provided template(in config_template).

  2. Update your src/main.py: Add the following code to your main Python file:

from WillMindS import config, logger
from WillMindS.utils import backup_files

def main():
    # get config
    exp_name = config.experiment
    # logging
    logger.info("test the log")
    pass

if __name__ == "__main__":
		import os
		backup_files("src/",  # backup your code
               ["src/WillMindS"], # exclude this dir
                 os.path.join(config.output_dir,"source_code_backup")) # backup path
		main()
python src/main.py --config_file config/basic.yaml

About

Efficiently set up your experimental environment with features such as logging, parameter management, code backup, and algorithms.

Resources

License

Stars

Watchers

Forks

Languages