Metadata-Version: 2.1
Name: minerl
Version: 0.2.0
Summary: MineRL environment and data loader for reinforcement learning from human demonstration in Minecraft
Home-page: http://github.com/minerllabs/minerl
Author: MineRL Labs
Author-email: minerl@andrew.cmu.edu
License: MIT
Description: # The [MineRL](http://minerl.io) Python Package  
        
        [![Support us on patron](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.herokuapp.com%2Fwguss_imushroom&style=for-the-badge)](https://www.patreon.com/wguss_imushroom)
        
        [![Build Status](https://travis-ci.com/minerllabs/minerl.svg?branch=master)](https://travis-ci.com/minerllabs/minerl)
        [![Downloads](https://pepy.tech/badge/minerl)](https://pepy.tech/project/minerl)
        [![PyPI version](https://badge.fury.io/py/minerl.svg)](https://badge.fury.io/py/minerl)
        [!["Open Issues"](https://img.shields.io/github/issues-raw/minerllabs/minerl.svg)](https://github.com/minerllabs/minerl/issues)
        [![Discord](https://img.shields.io/discord/565639094860775436.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/BT9uegr)
        
        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](http://minerl.io/docs/)!**
        
        **We develop `minerl` in our spare time, [please consider supporting us on Patreon <3](https://www.patreon.com/wguss_imushroom)**
        
        ## Installation
        
        With JDK-8 installed run this command
        ```
        pip3 install --upgrade minerl
        ```
        
        ## Basic Usage
        
        Running an environment:
        ```python
        import minerl
        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:
        
        ```python
        import minerl
        
        # YOU ONLY NEED TO DO THIS ONCE!
        minerl.data.download('/your/local/path')
        
        data = minerl.data.make('MineRLObtainDiamond-v0')
        
        # Iterate through a single epoch gathering sequences of at most 32 steps
        for obs, rew, done, act in data.seq_iter(num_epochs=1, max_sequence_len=32):
            print("Number of diffrent actions:", len(act))
            for action in act:
                print(act)
            print("Number of diffrent observations:", len(obs), obs)
            for observation in obs:
                print(obs)
            print("Rewards:", rew)
            print("Dones:", done)
        ```
        
        ## MineRL Competition
        If you're here for the MineRL competition. Please check [the main competition website here](https://www.aicrowd.com/challenges/neurips-2019-minerl-competition).
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
