Giter VIP home page Giter VIP logo

self-driving-car's Introduction

Self-Driving-Car

This project utilizes a simple Artificial Neural Network (ANN) to operate.

The essence of an Artificial Neural Network revolves around predicting the values of all feasible actions in the current state, comparing them to previously acquired Q-values. This comparison is achieved through a designated loss function, expressed by the mathematical equation:

$$๐ฟ = \sum(๐‘„๐‘ก๐‘Ž๐‘Ÿ๐‘”๐‘’๐‘ก - ๐‘„)^2$$

Once we have obtained the Q-values, we embark on the pivotal task of selecting an action, employing various action selection policies:

โ‚ฌ - Greedy: In this policy, the model astutely favors the action with the highest Q-value, factoring in the parameter โ‚ฌ. For instance, setting โ‚ฌ to 0.1 signifies that the model will opt for the best action 90% of the time, while allocating 10% to explore and embrace the element of randomness.

โ‚ฌ - Soft (1 - โ‚ฌ): This policy takes the opposite stance, favoring the action with the highest Q-value relative to (1 - โ‚ฌ). A โ‚ฌ value of 0.1 indicates that a mere 10% of the time will the model adhere to the optimal action, leaving 90% for uninhibited exploration and unpredictability.

Softmax: Distinguished from โ‚ฌ - Greedy and โ‚ฌ - Soft, the softmax function delicately transforms all outputs into a range between 0 and 1, subsequently scaled up by a factor of 100. This remarkable transformation endows the Q-values with probabilities, dictating the likelihood with which the model selects actions.

The essence shared by these action selection policies lies in striking a delicate balance between exploration and exploitation. A judicious blend of the two is crucial, as incessant exploration may yield inferior rewards, while unwavering exploitation risks hindering the model's capacity to learn and restrains it to random behavior.

In our Model we use softmax function to select action and Kivy to Create our Environment

self-driving-car's People

Contributors

mohammad-talaat7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.