Whiteboard:
https://whiteboard.fi/1e3b7985-34ef-4...
1.2. Prepare the environment for work
*Before starting the course, you need to:*
1. Install the PyCharm development environment: https://www.jetbrains.com/pycharm/
2. Install the Anaconda 3.9 Python package environment: https://www.anaconda.com/products/ind...
3. Install the PyTorch library using the conda package manager (the relevant command for each OS is generated on their website: https://pytorch.org). The command without a CUDA-compatible GPU will be:
```
conda install pytorch torchvision -c pytorch
```
4. Install SkLearn with the command:
```
conda install scikit-learn
```
and matplotlib with:
```
conda install matplotlib
```
5. Run the `hello_world.py` example (attached) using the PyCharm program (a successful run will confirm that the libraries are working).
*More about Anaconda environments:*
1. Create an environment: `conda create --name your_name`
2. Activate the environment: `conda activate your_name`
3. Then install libraries. In PyCharm, you also need to select the environment
`your_name` as the Python interpreter.
You can read more about conda environments.
https://towardsdatascience.com/gettin...
*Additionally, it is highly recommended to:*
1. Go through the Python tutorial here: https://www.w3schools.com/python/
2. Implement Python and read this tutorial carefully: http://karpathy.github.io/neuralnets/
3. Watch the Stanford video course on deep learning: • CS231n Winter 2016: Lecture1: Introduction...
4. Start reading the online book on deep learning: http://neuralnetworksanddeeplearning.com
5. Revise higher mathematics, derivatives, differential equations, and linear algebra
*Template:*
http://share.yellowrobot.xyz/quick/20...
1.3 Implement the function and submit the code as a file
Implement the function $f(x, b)$ .You must not use pre-built functions (one-liners). You must not use numpy or other libraries, only pure Python code.
Submit the source code and a screenshot, with an additional bonus if you use recursion.
Create code for the following equation:
http://share.yellowrobot.xyz/upic/df7...
$$
f(x, b) = (x^b + b) \cdot (x^{b-1} + b-1) \cdot (x^{b-2} + b-2) \cdot \dots \cdot (x^{0} + 0)
$$
1.4. Implement the function and display graphically using matplotlib
Submit the source code and a screenshot, bonus points if recursion is used. Additional points if numpy is used.
Equation:
http://share.yellowrobot.xyz/quick/20...
Result:
http://share.yellowrobot.xyz/upic/596...
1.5. Implement Python object-oriented code using UML class diagrams
Implement Python object-oriented code using UML class diagrams.
The vec_pos and others are initialized as 2D numpy vectors `np.array([0., 0.])`
All functions initially do nothing, the scope code only contains `pass`.
Only the class structure needs to be created; submit the Python file.
Optional: Bonus points if the Singleton pattern is implemented in the static functions Game.get_instance() and Player.get_instance() (Information about design patterns at https://refactoring.guru/design-patterns)
http://share.yellowrobot.xyz/quick/20...