Skip to main content

Intro

EzSpark is compliant to OpenAI Gym's APIs and lets you create an Artificial Intelligence model for your gym environment using a distributed network trained by other's users devices.

Getting Started

Get started by creating a new training.

What you'll need

  • Python version 3.7 to 3.10
  • Pyezspark
  • a Gym Environment installed locally on your machine

To check your version

python --version

To Install Pyezspark

pip install Pyezspark

Generate a new training

  • Go to https://app.ezspark.ai

  • Go to Account on the top-right corner

  • click on My Trainings

  • Click on Create a new Training

  • You can create a training either uploading a json file, or filling the parameters of the form

  • After you create a training you are ready to use the keys generated for your python code

Here a short video tutorial:

Start your training

Run the following python code:

import pyezspark
training_public_key = ''
training_private_key = ''
ez = pyezspark.EzSpark(training_public_key, training_private_key = training_private_key)
ez.execute()

Where the training_public_key and training_private_key are saved in your training details on https://app.ezspark.ai.

Now People can train your model connecting to you: either via browser or Pyezspark.