IGLU patch
This repo contains Minerl package with patched Malmo with custom blocks and behaviour added.
The MineRL Python Package
Python package providing easy to use gym environments and a simple data api for the MineRLv0 dataset.
To get started please read the docs here!
Installation
With JDK-8 installed run this command
pip3 install --upgrade minerl
Basic Usage
Running an environment:
import minerl_patched
import gym
env = gym.make('MineRLNavigateDense-v0')
obs = env.reset()
done = False
while not done:
action = env.action_space.sample()
# One can also take a no_op action with
# action =env.action_space.noop()
obs, reward, done, info = env.step(
action)
Sampling the dataset:
import minerl_patched
# YOU ONLY NEED TO DO THIS ONCE!
minerl_patched.data.download('/your/local/path')
data = minerl_patched.data.make(
'MineRLObtainDiamond-v0',
data_dir='/your/local/path')
# Iterate through a single epoch gathering sequences of at most 32 steps
for current_state, action, reward, next_state, done \
in data.sarsd_iter(
num_epochs=1, max_sequence_len=32):
# Print the POV @ the first step of the sequence
print(current_state['pov'][0])
# Print the final reward pf the sequence!
print(reward[-1])
# Check if final (next_state) is terminal.
print(done[-1])
# ... do something with the data.
print("At the end of trajectories the length"
"can be < max_sequence_len", len(reward))
Visualizing the dataset:
# Make sure your MINERL_DATA_ROOT is set!
export MINERL_DATA_ROOT='/your/local/path'
# Visualizes a random trajectory of MineRLObtainDiamondDense-v0
python3 -m minerl_patched.viewer MineRLObtainDiamondDense-v0
MineRL Competition
If you're here for the MineRL competition. Please check the main competition website here.
Metadata
Release files for minerl-patched 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| minerl_patched-0.1.0.zip | 53.4 MB | Without provenance | Details |
Release files / minerl_patched-0.1.0.zip
| Download URL | minerl_patched-0.1.0.zip |
|---|---|
| Size | 53.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91590024188709238ef559d0b2fd070524ad5a26630c5fb8a7c317ded4ad6e75
|
|
BLAKE2b-256 checksum How to use checksums |
8e04e292e35d9a51ed3f7fb927d5aa4339cbd5e2ee1292ef5ef201a0db191015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
|
Security for minerl-patched 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.