Forum > Coding >

[Release] Simple Feed Forward Neural Network in lua (FFNN)

Posts: 0

Threads: 0

Joined: ?

Reputation:

Posted

Well, I didn't want to release this at first. Due to the lack of interest in the Linear Regression model I made yesterday. I understand that no one really knows much on machine learning here so, I've provided some references below if anyone would like to learn about machine learning.

This is a very simple FFNN I made. Ofc uses sigmoid as an activation function, Has two input nodes, one hidden layer with two hidden nodes, and only one output node. You can increase this if you'd like (Not like anything is gonna change, unless you change some of the code in the back,and forward pass functions).

If you'd like to learn some ml models (Machine Learning = ml) you can dm me on discord or wrd idk your choice.

Link: https://github.com/MrLolegic/LuaStuff/blob/main/Projects/FFNN.lua

References:

https://mitsloan.mit.edu/ideas-made-to-matter/machine-learning-explained
https://towardsdatascience.com/all-machine-learning-models-explained-in-6-minutes-9fe30ff6776a
https://alex.smola.org/drafts/thebook.pdf
https://www.tutorialspoint.com/machine_learning/machine_learning_tutorial.pdf

  • 0

ecstacy_lxnny

fka as delta

contentCreator

Posts: 764

Threads: 69

Joined: May, 2021

Reputation: 95

Replied

Very cool! Could you make an example script that uses it?

  • 0

fka as delta

Syraxes_

Web Developer

vip

Posts: 1068

Threads: 30

Joined: Jul, 2021

Reputation: 63

Replied

And your book? :(

  • 0

I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@Delta, the script itself should work fine. There is no particular script that uses it. If you'd like I can make a text based neural network (rnn) for example a recurrent neural network. Which can be used to have a conversation with.

  • 0

Added

@Syraxes_, the book will take time. Weeks, months to perfect. I want every piece of Lua to be explained and include stuff that Lua can do. People don't give Lua enough credit in my opinion. 

  • 0

ecstacy_lxnny

fka as delta

contentCreator

Posts: 764

Threads: 69

Joined: May, 2021

Reputation: 95

Replied

@Lolegic, Idk a single line of lua tbh lmao

  • 0

fka as delta

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@Delta, you should learn it. It's easy to learn with a simple and easily rememberable syntax.

  • 0

Added

It'll take less time to learn Lua than it would to learn cpp or rust.

  • 0

Users viewing this thread:

( Members: 0, Guests: 0, Total: 0 )