Skip to content

ML code templates for quick starting or easy conversion between some frameworks

Notifications You must be signed in to change notification settings

iTomxy/ml-template

Repository files navigation

ml-template

My personal code snippet library of helper functions and classes, some with example.

  • +itom/: Tool functions that might be used in MATLAB codes. The leading + will add this folder into the searching path.

  • configurations/: Configuration files.

  • containers/: Definition files of Docker and Singularity image.

  • git/: git-related command showcases and .gitignore template.

  • scripts/: Utility scripts.

  • utils/: Utilities.

  • args.py: An example of using the argparse package in Python.

  • config.yaml: An example of writing arguments in YAML. Can be used together with utils/config.py.

  • requirements.txt: Common packages I met that a Docker image may not contain.

hosts

some entries to be added in hosts file for GitHub accessing:

140.82.114.4	github.com
199.232.5.194	github.global.ssl.fastly.net
199.232.68.133	raw.githubusercontent.com

see [9] for automatic hosts updating.

pip

change the source of pip, see [7, 8].

While you can add the configuration file yourself, a quicker way would be using one of the following commands:

# Tsinghua
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# Alibaba
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# Tencent
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
# Douban
pip config set global.index-url http://pypi.douban.com/simple/

References

  1. AlexNet implementation + weights in TensorFlow
  2. mikechen66/AlexNet_TensorFlow2.0-2.2
  3. Finding source of NaN in forward pass
  4. torch.autograd.detect_anomaly
  5. deep-cross-modal-hashing/torchcmh/dataset/base/triplet.py
  6. 【BUG】[nltk_data] Error loading punkt: <urlopen error [Errno 11004] [nltk_data]
  7. Python 修改 pip 源为国内源
  8. python - pip换源,更换pip源到国内镜像
  9. 521xueweihan/GitHub520
  10. 解决pip安装超时的问题
  11. screen
  12. 亲测!screen好看好用的配置(Linux)
  13. How can I run Tensorboard on a remote server?

About

ML code templates for quick starting or easy conversion between some frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published