- 전체
- 게임 일반 (make game basics)
- 모바일 기획 및 디자인
- GameMaker Studio
- Unity3D
- Cocos2D
- 3D Engine OGRE
- 3D Engine irrlicht
- copperCube
- corona SDK
- Windows Basic Game
- BaaS (Mobile Backend)
- phnegap & cordova
- ionic & anguler
- parse (backend)
- firebase (backend)
- Game Backend Server / Opt
- web assembly
- Smart Makers
- pyGame & Ren'Py
- 머드(MUD) 게임 만들기
- Xamarin(자마린)
- flutter (플루터 앱 개발)
- construct 2 / 3
- pocketbase
- RPG Maker 시리즈
- godot engine
- playmaker(unity)
- react native
[GameMaker Studio] Neural Network in Game Maker Studio – part 3
Before we continue coding the training part, we are going to do a short improvement to our neural net. We are going to add the following: Bias and Normalization.
Adding bias will help our neural net to solve more complex problem. Normalization, on the other hand, will be used to optimize inputs, allowing multiple inputs to be fed to our neural net.
Adding Bias
Bias is an offset from an origin. A simpler way to understand bias is through linear function.
y = mx + b
Where b is where the function line intercept the y-axis.
Without a bias, our activation function, tanh(x), is limited to adjusting the steepness of the tanh function. This can already allow the neural net to learn patterns. However, this can result to a poorer fit

Bias allows the tanh function to adjust horizontally.

Normalize Script
In the future, our neural net might require more than one input. Some input values might vary in ranges. For instance:
| INPUTS | |
| Direction | Direction will be measured in degrees, 0 to 360 |
| Distance | Distance on the other hand will be measured in pixels. Distance can range from 0 to ∞ |
This will result in a poorer fit. The distance input will influence the result more than the direction input. In order to counteract this problem, we have to limit the range of any inputs from 0 to 1 and this can be achieved through normalization.
Normalization should be used when dealing with multiple input values that posses different range. For instance, input 1 ranges from -100 to 100 and input 2 ranges from 0 to 5. Normalization will convert these values to a common range in this case -1 to 1.
In code, normalization will look like this:
///normalize(input, min, max)
var _x = (argument0-argument1)/(argument2-argument1);
return(_x);
Where:
• input (argument0) – input value
• min (argument1) – minimum possible value
• max (argument2) – maximum possible value
Everything is set! Our neural net is now ready for a little more complex task. On the next post, we are going to create training scripts for our neural net. Stay tuned!
[출처] https://highleapstudios.wordpress.com/2019/10/07/neural-network-in-game-maker-studio-3/
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
댓글 0
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 11 |
[WebAssembly] How To Get The Most Out Of OpenGL With C++ And WASM
| 졸리운_곰 | 2022.04.19 | 416 |
| 10 |
[웹 어셈플리 WASM] emsdk MAME Web Application
| 졸리운_곰 | 2021.01.24 | 247 |
| 9 |
2019년과 이후 JavaScript의 동향 - WebAssembly
| 졸리운_곰 | 2019.12.19 | 290 |
| 8 | Compiling a New C/C++ Module to WebAssembly | 졸리운_곰 | 2019.12.19 | 363 |
| 7 |
[개발바보]WebAssembly, 브라우저에 올리는 네이티브 코드
| 졸리운_곰 | 2019.12.19 | 278 |
| 6 | Rust 코드를 웹 (어셈블리)로 전환 : Compiling from Rust to WebAssembly | 졸리운_곰 | 2019.12.19 | 364 |
| 5 |
WebAssembly 101: a developer's first steps
| 졸리운_곰 | 2019.12.19 | 455 |
| 4 |
짱! 웹 어셈블리 문서 링크 Awesome Wasm
| 졸리운_곰 | 2019.12.19 | 535 |
| 3 |
웹어셈블리의 컨셉, 어셈블리가 뭔가요?
| 졸리운_곰 | 2019.12.18 | 583 |
| 2 |
파이썬과 웹 어셈블리 Python and WebAssembly
| 졸리운_곰 | 2019.12.18 | 1663 |
| 1 |
[Web Assembly] Exploring Blazor with Visual Studio 2019
| 졸리운_곰 | 2019.12.18 | 6597 |

