Skip to main content

Questions tagged [neural-network]

In machine learning and cognitive science, neural networks are a family of statistical learning models inspired by biological neural networks and are used to estimate or approximate functions that can depend on a large number of inputs and are generally unknown.

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

Graph Neural Network (GNN) (2)

This is an implementation of a graph neural network. Edges are represented by an egde-list. ...
user366312's user avatar
1 vote
1 answer
95 views
+50

Graph Neural Network (GNN) (1)

The given datasets are graph data structure that represents social interactions. The nodes will be represented as People{node_id, edge, gender, occupation} and the ...
user366312's user avatar
2 votes
1 answer
184 views

Neural network text classifier

I wrote a simple NN text classifier to help me quickly sort through the new daily submissions to the arXiv. It downloads the new submissions, processings their titles and abstracts, trains a NN on ...
Gabriel's user avatar
  • 597
0 votes
1 answer
41 views

Feature-subset-selection using autoencoder [closed]

The following listing performs feature-subset-selection (not feature extraction) using an autoencoder. My aim is to select the best features from the 1000+ available features in the given dataset. I ...
user366312's user avatar
0 votes
2 answers
54 views

Feature subset selection using neural network

This listing selects the best features from the 1011 available columns in a given dataset. The first three columns are dropped because they are useless data. The dataset is huge. So, they were read in ...
user366312's user avatar
2 votes
1 answer
38 views

One-layer linear neural network to solve a regression problem in PyTorch

Good morning everyone, I am trying to figure out how deep learning works. My approach is mainly theoretical but I have decided to code a few deep learning projects to get a better feel of the kind of ...
francescoriccardocrescenzi's user avatar
1 vote
1 answer
108 views

Custom neural network implementation in TensorFlow to compare normalisation vs. no normalisation on data

I am performing a sports prediction multi-class classification problem, and wanted to compare the differences in model performance between normalised and non-normalised data. You can see the 2 ...
pastybake2002's user avatar
0 votes
0 answers
35 views

Simple Feed Forward Neural Network with no backpropagation yet

The following code is code I wrote in c for a simple neural network with no backpropagation implementation yet. All the header files were put in one file because I am using visual studio which does ...
Christian Phillips's user avatar
2 votes
0 answers
38 views

A simple word embedder only using jax

How can this code be improved? I'm a novice programmer trying to learn ml by doing it from scratch. This code is part of a transformer model that I'm working on. Do you have any ideas about how to ...
T3st's user avatar
  • 21
1 vote
0 answers
125 views

Convolutional Neural Network (CNN) in Julia

I wrote an n-dimensional convolutional neural network from scratch in Julia (check out the GitLab repo or the GitHub repo). It implements the following layer types: ...
Andy Sukowski-Bang's user avatar
0 votes
0 answers
62 views

Running a neural network backwards

I've read this paper where they basically run a network backwards. And decided to try. Luckily, many useful functions are implemented already in pytorch. The main idea is this: Write a convnet Write ...
Minsky's user avatar
  • 249
1 vote
0 answers
48 views

Recurrent Neural Network loss is NAN

I am training a neural network to use approximately 600 features (4103rd to last column of a df) to predict approximately 4000 values (7th to 4102nd column of the same df). I have standardized the ...
Manas Garg's user avatar
6 votes
3 answers
581 views

Feed forward neural network

I have made a basic neural network in python. The idea is the neural network can have any structure you want, not just the standard layers where every neuron is connected to every neuron in the next ...
coder's user avatar
  • 179
2 votes
1 answer
137 views

ANN with Backpropagation for MINST data set

I am learning about ANN and tried it for the MINST data sets. Now I am supposted to create a neural network (ANN) with backpropagation. The structure for the neural network I have is this the input ...
zellez11's user avatar
1 vote
1 answer
91 views

Neural Network in Julia (Multilayer Perceptron)

I wrote a simple multilayer perceptron in Julia, which seems to work fine on different datasets, e.g. the MNIST dataset with a success rate of about 90% after a few seconds of training. But I would ...
Andy Sukowski-Bang's user avatar
1 vote
1 answer
64 views

Optimize an algorithm for preparing a dataset for machine learning

I'm learning how to use R coming from a python background. I'm following Andrej Karpathy's zero-to-hero course, reimplementing it in R. We start with a list of 32033 names. These names have to be ...
plaffont's user avatar
2 votes
1 answer
82 views

Readable Backprogragation calculations in Numpy Neural Network

As an exercise we should write a small Neural Network with the following structure: There should be additionally a bias for each layer and sigmoid should be used as the activation function. The ...
Leon0402's user avatar
2 votes
0 answers
84 views

neural network that determines the gender of a word

I wrote a neural network in python using pytorch, which determines the gender of a word in Russian. As a training set: a file containing a word and a number from 0 to 2 (0-masculine,1- feminine and 2-...
user avatar
1 vote
0 answers
157 views

Binary classification with pytorch

I wrote a simple neural network binary classification algorithm using Pytorch. It uses the dataset from https://www.kaggle.com/pritsheta/heart-attack, which consists of a table with 300 rows and 14 ...
user3053216's user avatar
4 votes
1 answer
77 views

Unsupervised competitive learning algorithm from scratch in javascript

I'm a mathematician who is new to programming and I'm currently reading the book "Theory of Neural Networks" by Rojas. To become better, I try to program every algorithm that is described in ...
Giuliano Cantina's user avatar
2 votes
0 answers
55 views

DQN implementation

I just wrote my pong DQN. It seems to work. I'm looking for a performance based review on anything that might slow down the training in complex models. main.py: ...
Machine Learning Diary's user avatar
2 votes
2 answers
87 views

Updated version of my first neural network in c++

I got lot of suggestions for optimizing my neural network last post I made, now I wanted to post updated version of it were I got rid of most of performance eaters, now I would really appriciate ...
G.Azma's user avatar
  • 31
8 votes
3 answers
743 views

My first functional naive neural network in C++

I just wrote my first standard neural network with SGD gradient descent in c++, I am really interested if I have done anything wrong or inefficient, suggestions would help me a ton (There is lots of ...
NameThatDisplays's user avatar
2 votes
1 answer
99 views

Loss function in python is a bit cumbersome

Here is a python function I have for a neural network I have implemented. I feel it become a bit cumbersome. The intention is to weight positive labels in channels ...
El_Loco's user avatar
  • 169
4 votes
1 answer
125 views

Working Neural Net from scratch

Asking for a review of this neural network code. I have officially finished my first neural net that works properly (by my standards right now). But I know there is more than likely some details I am ...
Yugenswitch's user avatar
4 votes
1 answer
134 views

Neural Network Written in Python is Extremely Slow

I coded a basic feedforward neural network with all pure python with the exception of numpy in order to better understand how neural networks work. It works, but the only problem is it is extremely ...
Lburris12's user avatar
1 vote
1 answer
137 views

Neural net backprop code quality

This is my first neural net, previously I had it with just one hidden layer. I have now given it an adjustable number of hidden layers. It all works perfectly (asin I dont get nans and infs). I have ...
Yugenswitch's user avatar
1 vote
1 answer
78 views

Does this feedforward neural network work like i think it works?

I seem to have taught myself the basics of c++ living off grig in the woods of Alaska. Most of this has been done on my android phone using cpp droid. This is the first time anyone has seen any of my ...
Off_grid_coder's user avatar
4 votes
0 answers
102 views

Using VAE for reconstructing images

Article: https://arxiv.org/pdf/2009.07047v1.pdf Full Code: https://colab.research.google.com/drive/1KZZuIa7Lk13ImZLJ3b-kxMfcveOPaWvN#scrollTo=XhdMfBFtzaEH Dataset: https://drive.google.com/file/d/...
Robert's user avatar
  • 41
2 votes
0 answers
49 views

Generator and Encoder network model [closed]

https://arxiv.org/pdf/2009.07047v1.pdf I don't have a lot of experience in building a network model. I would like to build the Encoder and ...
Alex's user avatar
  • 121
1 vote
0 answers
80 views

Implementing Convolutional Neural Network

Context I was making a Convolutional Neural Network from scratch in Python. I completed making it .... It works fine ... The only thing is that it takes a lot of time as the size of the input grows. ...
NITIN AGARWAL's user avatar
7 votes
1 answer
114 views

A .py utility file for neural network learing rate policies

I've created a .py utility file, which specifies the learning rate policy for the neural network in PyTorch. The program in prior reads a ...
spiridon_the_sun_rotator's user avatar
3 votes
1 answer
106 views

Constraining monotonicity in the loss function during training

I have a neural network that I am training on a loss function composed of two terms (i.e. loss = loss1 + loss2). Ideally, I would like for both ...
Mathews24's user avatar
  • 131
4 votes
1 answer
67 views

Python implementation of Back Propagation Algorithm without bias

This program implements the back propagation algorithm of neural network with an example. Can we make it more efficient? ...
An student's user avatar
6 votes
1 answer
998 views

Simple neural network in c++

I have implemented a neural network in C++. But I'm not sure whether my implementation is correct or not. My code of the implementation of neural networks given bellow. As an inexperienced programmer, ...
Sharif Hasan's user avatar
6 votes
1 answer
258 views

Using Newton Method in a Neural Network/

I programmed a Neural Network to do binary classification in python, and during the backpropagation step I used Newton-Raphson's method for optimization. Any kind of feedback would be appreciated, but ...
Bagutreko's user avatar
1 vote
1 answer
123 views

LSTM Model - Validation Accuracy is not changing

I am working on classification problem, My input data is labels and output expected data is labels Labels Count 1 94481 0 65181 2 60448 I have made ...
YogeshKumar's user avatar
1 vote
0 answers
284 views

Lazy loading generator for training a Keras network

A common use for Keras LSTM layers is to generate text. There are many examples showing you how to do it. The usual method is to convert the text into a sequence of tokens and then slice up the ...
Gaslight Deceive Subvert's user avatar
3 votes
1 answer
932 views

MNIST Neural network in C++

While reading an online book (Michael A. Nielsen, Neural Networks and Deep Learning, Determination Press, 2015) regarding neural networks, I decided I wanted to try and build a neural network which ...
rvdb's user avatar
  • 33
2 votes
0 answers
56 views

simple neural network in python

I've spent the last few days learning the beginnings of how to implement a simple neural network. I've gone through chapters 1 and 2 of this book and have tried to write my own NN with referrals to ...
andy's user avatar
  • 61
1 vote
0 answers
54 views

A function for batch backpropagation of weight errors in a dense neural network layer

I'm switching my neural network library over to using ArrayFire for performance. One of the features I am losing moving from ndarray is ndarray_einsum_beta, as such I need to write my own function to ...
Jonathan Woollett-light's user avatar
3 votes
1 answer
36 views

Creating generator object with image augmentation to train Convolutional Neural Networks with Keras

I am currently self-studying on Python generator object and use it to generate training data and do augmentation on-the-fly, then feed it into Convolutional Neural Networks. Could anyone please help ...
eng2019's user avatar
  • 131
2 votes
0 answers
112 views

Multi-threaded HD Image classifier using a neural network

This is a follow up to the code found here: Multithreaded HD Image Processing + Logistic reg. Classifier + Visualization Description: This code takes a label and a folder path of subfolders as ...
watch-this's user avatar
6 votes
2 answers
224 views

A Neural Network

I programmed a Neural Network in python. Feedback every kind is appreciated. I tried to use some vectorization but it turned out to become quite a mess. Because you can't append to numpy arrays I ...
Lupos's user avatar
  • 163
2 votes
1 answer
98 views

Java Neural Network Implementation

I have recently tried to get a better grip on machine learning from a point of implementation - not statistics. I've read several explanations of an implementation of a Neural Network via pseudocode ...
Edwin Carlsson's user avatar
1 vote
0 answers
100 views

Neural network from scratch in Python

So after watching week 5 of the machine learning course on Coursera by Andrew Ng, I decided to write a simple neural net from scratch using Python. Here's my code: ...
user avatar
-1 votes
1 answer
131 views

Python ANN Implementation [closed]

I recently learned about backpropagation online and tried to implement it. I am not sure I have it correct yet. I am confused and would love a second pair of eyes on this code. Please help me ...
need_help_pls's user avatar
9 votes
1 answer
360 views

Neural Network with Template Metaprogramming

I was implementing a simple neural network, and I noticed that, if I ever wanted to change the layers' activation functions, i would have had to completely rewrite some parts of the code, so I tried ...
Dan Dan's user avatar
  • 633
6 votes
1 answer
84 views

Implementation of perceptron, inspired by Rashka

I am trying to learn the basics about neural networks by coding from scratch the perceptron model. Since I am not a programmer and would like to improve my coding skills I would like to get your ...
amous's user avatar
  • 103
8 votes
1 answer
248 views

Deep Neural Net implementation in Python3

I created my first implementation of an arbitrary feed forward neural network with a simple back-propagation training implementation. ...
Display name's user avatar