This repository contains instructions to get started with Ansys Machine Learning and is intended to guide you through the workflow and common practices we encourage at Ansys. In the following sections, you can find instructions on how to prepare code in python, how to setup virtual environments or Docker containers and how to organize github repository.
A significant portion of machine learning development at Ansys takes place in Python.
- In order to install Python, follow the instruction given at Install Python.
- You can use any IDE you prefer. Most developers use PyCharm which provides user-friendly interface for code preparation and debugging.
- We strongly encourage you to use virtual environments or Docker containers to compartmentalize your libraries/projects.
- When you develop your code, please follow the PEP 8 coding style.
- Testing: Test functions can help tremendously when multiple developers contribute to
a single project. When a new developer adds new feature to an existing codebase,
they will run the existing tests to ensure they have not broken any of the already
implemented features. Then, they write additional unittests for the newly added
features for future developers. A fairly popular way of writing test functions is
to use the
unittest
library which is packaged with python. A light introduction of how to useunittest
is provided in unittest introduction. - Documentation: There is a famous quote that "documentation is a gift to your future self". If you code is ready
to be published consider adding consistent documentations. Please follow a standard scheme for documentation. You can read
more about these schemes here.
As an example, the
area.py
module in the examplecode
folder follows agoogle
docstring style. You can generate HTML or LaTex documentations using tools such assphinx
library.
TBA
Version control is an essential part of any software engineering project.
- At Ansys we use Git for version control. A short instruction on how to install and use Git for project development can be found at Git.
- To share your code with others, interns can use our Ansys Research Github.
- We strongly encourage you to follow the common project format for your machine learning projects.
(TO BE COMPLETED)
-
If you're using Pytorch, have a look at Pytorch guidelines
-
If you're using Tensorflow, have a look at Tensorflow guidelines
-
If you're interested to see if you can run your code faster, have a look at faster code guidelines