Integrate Data Science Lessons Directly Into MEE
❗️Important: Python 2 is not supported
Install Python 3.9
Install Flask, and several data science libraries with "pip"
pip install flask websockets jsonlines
pip install numpy matplotlib pandas sklearn-
Clone this repo (main branch)!
-
Locate and travel to the 'http_simple' directory
-
Run 'main.py' in the 'python' directory!
Mac / Unix-like (and PowerShell)
cd path_to_repo/http_simple/
python python/main.pyWindows (Commandline)
cd path_to_repo\http_simple\
python python\main.py
This application is made to introduce students to datascience concepts. While these concepts are more suitable for upper middle-school ages and higschool ages, sufficiently computer literate students will be able to work with the application and begin to understand many fundamental ideas.
Learn how to collect data, and use it to enhance your gameplay!
-
📁 Minecraft event data collection: Collects data as users play, tracking events such as breaking a wood block, or throwing a piece of cobblestone.
-
📑 Data Importing: A simple function allows users to load all of their event data into a built-in Python environment.
-
🐍 Python REPL Environment: A built-in REPL environment allows users to immediately work with their data after collectiong it, right inside of Minecraft!
-
📈 Python Data Science Libraries: Preloaded Python libraries allow users easily visualize and sort their data, as well as train sophisticated models.
Lessons are written as default Markdown ( .md ) files. What this means is that you can write an entire lesson in Markdown (or Word / some other word processor, then convert), as if you were going to give users a normal handout for an assignment.
# Determine Optimal Mining Level with "Hierarchical Clustering"
## What You'll Need:
- A mine
- A pick
- 25 minutes
## Data Collection
To create this model, you need to mine some ores! Included with this lesson is some mining data collected by fellow Steves from around the world!
Begin by collecting some data of your own by going into a mine and collecting some coal, iron, gold, and redstone! If you can, mine yourself some diamonds too!
## Creating the Model
Lorem ipsum.. just kidding. Something about how hierarchical clustering is like a tree.
It helps visualize how different or similar data is and how we should separate it into groups.
This model will tell us exactly how it tells the ores apart (other than by name) so we can then use that logic in-game!
Start by reading in your data:
`
# read in your newly collected data
my_data = update_event_data()
# see how many different types of blocks you mined, and which ones you want to keep
print(my_data...)
...
`A complete example lesson is included in the repo here!
-
Minecraft Wiki - All information may not pertain to Education Edition
