Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6739097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:26:49+00:00 2026-05-26T11:26:49+00:00

PyBrain is a Python-based library for creating neural networks. I’ve looked at the tutorials

  • 0

PyBrain is a Python-based library for creating neural networks. I’ve looked at the tutorials on their site but they don’t seem to help me very much. The simulation I plan to do is have a car that drives on a track, equipped with 5 rangefinders showing the current distance between it and the walls, ranging between 0.0 and 1.0. The fitness is based on average speed. (Higher would be better) The output would be one number, how much you turn for that specific moment, where all the way right is 1.0, and all the way left is either -1.0 or 0.0, whichever makes it simpler.

I assume using this setup I would have 5 input neurons and 1 output neuron. Just for example, I’ll assume I have 4 hidden neurons. Let’s also assume I’ve made a function called runSimulation() which takes a neural network as an argument, drives the car down a course using that neural network, and returns the average speed (the fitness).

How can I train a neural network based upon the repeated results of runSimulation()?


I hope I am explaining this correctly, (not to mention even slightly knowing what I am doing) but if I am not, please tell me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:26:49+00:00Added an answer on May 26, 2026 at 11:26 am

    It seems that this is a supervised learning problem. In this type of problem you NEED to provide some answers BEFORE to train your NN.

    You can try following approach

    1. Create a simple maze for your car.
    2. Drive your car manually in this maze.
    3. Collect your turning information

    Lets assume you have following car.

    • rf = rangefinder
    • rf_f = rangefinder_forward
    • rf_r = rangefinder_right
    • rf_l = rangefinder_left
    • rf_60 = rangefinder_60 degree
    • rf_320 = rangefinder_320 degree

    Below is your rf diagram

      320   f   60
       \   |  / 
        \  | /
         \ |/  
     l--------------r
           |
           |
           |
    

    Your train set should be like below.

    rf_f , rf_l , rf_r, rf_60, rf_320 , turn
    0     0      0    0    0     0       0    // we go directly, no obstacles detected
    0     0      0    0    0     0       0     // we go directly, , no obstacles detected
    1.0   0      0    0    0     0       0    // We see a wall in forward far away. 
    0.9   1      0    0    0     0       0.2  // We see a wall in forward and left, 
                                                 therefore turn right slightly etc.
    0.8   0.8      0    0    0     0     0.4  // We see a wall in forward and left, 
                                             therefore turn right slightly etc.
    

    After you have given such a training dataset to your NN you may train it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a feed-foward neural network in python using the pybrain implementation. For the
I'm trying a very simple case using a Python library called pyBrain and I
I follow the PyBrain tutorial Classification with Feed-Forward Neural Networks and want to build
I want to create an artificial neural network (in PyBrain) that follows the following
I am trying to use PyBrain for some simple NN training. What I don't
I am learning python and django. I need to do extensive stuff for data
I'm trying to work out how to implement some machine learning library to help
I have been working on crawling webpages and extracting the elements of the website.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.