Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by AshAteven · May 06, 2020 at 01:06 AM · ainetworkartificial intelligenceintelligence

So I made a neural network... How do I use it?

Hello, I just made a neural network from watching a guide, but I'm not quite sure how to implement it into a game, all I want is to have it learn to jump over obstacles, thanks

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Captain_Pineapple · May 06, 2020 at 03:05 PM 1
Share

You can not expect to get an answer to such a complex question by describing your problem with one sentence...

avatar image AshAteven Captain_Pineapple · May 06, 2020 at 07:17 PM 0
Share

Well theres not much else to say?

And besides, its not a complex question, I am just asking how to implement a neural network into unity

avatar image jmurnanedev AshAteven · May 07, 2020 at 06:23 AM 1
Share

Unfortunately I think he's right - nothing wrong with wanting to learn how to develop a neural network, but it's not the same as learning how to make a sprite move with WASD or something; neural networks are a massively complex field with complicated mathematics behind them, and aren't something even many advanced programmers would feel comfortable doing - it's one of those things people go to university to explicitly study for years. If you're having to ask this question it gives the implication you don't know how the neural network actually works or what it's doing in the first place - so I'd highly suggest you take a course on AI and neural networks, genetic algorithms etc.. and make sure you understand what they're doing logically before you try to implement one yourself!

The problem with your question is that it tells us nothing - how does the neural network work? What guide did you follow, what libraries (if any) did you use? Did you evolve it using a genetic algorithm, how is it trained, have you trained it already? etc.. etc..

Saying "I made a neural network, how do I use it" is like asking "I made a car, why can't I drive it?" - you've given no context and we don't know what car you made, why or how you made it, how it works or what the problem even is.

Hope this helps - nothing wrong with trying to learn, but make sure you can walk before you run!

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · May 08, 2020 at 01:13 AM

Like others have already mentioned your question is way too general. There are countless different neural network designs and concepts out there. Apart from that there are also countless different ways how to actually train or modify the network to get closer to what you actually want it to do. That's actually another big factor: What is your actual use case? If you compare a neural network to a car then the main purpose of a neural network is just a mathematical mapping of some inputs to some outputs. Just like the purpose of a car is to get you from a point A to point B. Of course there are many different nuances how one would use a car but the basic principle is always the same.


If you want to learn more about neural networks I highly recommend the 3Blue1Brown series on neural networks.


Actually setting up a neural network requires specific details on the actual usecase. Like @jmurnanedev said you usually have a fittness function in order to determine how "well" the network behaves. There are many different ways how you can improve a neural network. One is through generational mutation, another one is through back propergation. Both general directions work entirely different and have countless different implementations and aspects to it. So just for example generational mutation is usually done by duplicating the network and applying some small random changes to some random elements and test the result. However such test runs are often grouped into test groups / generations and at the end of a test run you choose the generation that has performed the best. If multiple different goals should be achieved at once it's also possible to try to "breed" two or more networks together by combining them into one network by taking some weight from the first network and some from the other or by calculating the mean between them.


Backpropergation is quite math heavy and depends on the active learning towards a certain goal. So you have to have a large set ot test input where you know the wanted output. So you just run the test input through the network and see what the output is and what the expected output should be. From that you can calculate the error (the difference between the wanted output and the actual output) and slightly adjust all the weights in such a way you get closer to the "correct" output. This process has to be repeated many many times.


If you have a lot of free time I can also recommend to watch the AI series of Computerphile. Though the playlist doesn't seem to include the first videos.


edit
For some reason UA has lost the whole bottom of my answer -.-

Anyways I just had some additional links to the feed forward ANN I wrote a few years ago as well as this question which was about life simulation with an ANN. Note that my implementation is not meant to be fast or performant. It's just a simple straight forward OOP approach.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

314 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Enemy raycast detects player only at constant distance 0 Answers

What algorithms might be needed to build AI for a game like American Football in Unity? 1 Answer

A little doubt about creating a Talking BOT that simulates AI, for iOS system using Unity. 0 Answers

How to keep an array of targets in detection radius? 0 Answers

using Navmesh or ML Agent ?! 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges