Skip to content

Commit

Permalink
fix: missing pip install, new cloudshell league file
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperan committed Jul 20, 2023
1 parent 2decf80 commit 2999b48
Show file tree
Hide file tree
Showing 3 changed files with 836 additions and 5 deletions.
4 changes: 3 additions & 1 deletion deps/cloudshell_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ ansicolors==1.1.*
requests==2.28.*
attrs==21.4.*
pandas==1.4.*
ujson==5.4.*
ujson==5.4.*
rich
pyyaml
8 changes: 4 additions & 4 deletions hols/dataextraction/optimizer/optimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Estimated Time: 30 minutes

If we want to build an AI/ML model, we need data. Lots and lots of data.

For that, Riot Games has provided us with several HTTPs endpoints to make requests and obtain this data. Through the [sqlite_league.py](https://github.com/oracle-devrel/leagueoflegends-optimizer/blob/livelabs/src/sqlite_league.py) file, we'll be able to make all the kinds of requests we want. This Python file has been programmed to allow input parameters and determine the execution mode.
For that, Riot Games has provided us with several HTTPs endpoints to make requests and obtain this data. Through the [cloudshell_league.py](https://github.com/oracle-devrel/leagueoflegends-optimizer/src/cloudshell_league.py) file, we'll be able to make all the kinds of requests we want. This Python file has been programmed to allow input parameters and determine the execution mode.

All tools mentioned in this lab are designed to allow parallel and continuous execution, meaning that, if you don't stop execution of the optimizer, it will keep collecting data **indefinitely**. You're free to explore with how much data you want to extract using the optimizer.

Expand Down Expand Up @@ -49,7 +49,7 @@ The more you repeat this process, the more data your dataset will have. If you w
1. To extract player data, we can run:

```bash
λ <copy>python src/sqlite_league.py</copy>
λ <copy>python src/cloudshell_league.py</copy>
```

![player list result](images/result-player-list.PNG)
Expand All @@ -60,7 +60,7 @@ The more you repeat this process, the more data your dataset will have. If you w
2. To extract previously played matches' IDs from our pool of players in the database, we can do this:
```bash
λ <copy>python src/sqlite_league.py --mode="match_list"</copy>
λ <copy>python src/cloudshell_league.py --mode="match_list"</copy>
```
![match list result](images/result-match-list.PNG)
Expand Down Expand Up @@ -102,4 +102,4 @@ You may now [proceed to the next lab](#next).

* **Author** - Nacho Martinez, Data Science Advocate @ DevRel
* **Contributors** - Victor Martin, Product Strategy Director
* **Last Updated By/Date** - May 28th, 2023
* **Last Updated By/Date** - July 20th, 2023
Loading

0 comments on commit 2999b48

Please sign in to comment.