https://github.com/itallix/mipt_homeworks
MIPT puzzles
https://github.com/itallix/mipt_homeworks
Last synced: about 1 month ago
JSON representation
MIPT puzzles
- Host: GitHub
- URL: https://github.com/itallix/mipt_homeworks
- Owner: itallix
- License: mit
- Created: 2023-09-23T15:25:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-10T17:00:15.000Z (over 1 year ago)
- Last Synced: 2025-02-12T10:27:12.904Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 3.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DS Python HW
HW source code for course MIPT/Data Science
## Prerequisites
- [python 3.11](https://www.python.org/downloads)
- [poetry](https://python-poetry.org/)
- [pre-commit](https://pre-commit.com/)Install dependencies with poetry:
```sh
poetry install
```Running notebooks with jupyter lab:
```sh
poetry run jupyter lab
```## HWs:
### Guessing number based on random input from interval [1, 100].
[solution](./src/game_core.py) uses double pointer technique and minimises interval on
each iteration.Test parametrised with 1000 random values based on numpy `np.random.randint` method.
Test asserts number of attempts to be less than 20 for each iteration.
To run tests use:```sh
poetry run pytest tests/test_game_core.py
```Solution is duplicated in [guess_number notebook](./notebooks/guess_number.ipynb)
### HeadHunter CV analysis.
#### Prerequisites
Data dump with CVs from hh.ru is available via [link](https://drive.google.com/file/d/1EzqRRuSg1sGORzAssQ8J1VZsAydAVfqu/view?usp=drive_link)