Questions tagged [c++]

For questions about implementation of Machine Learning and Artificial Intelligence algorithms in the C++ programming language.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
31 views

Error free learning for neural networks. What's the math behind it? [closed]

Does anyone know how this algorithm performs the learning process for neural networks? I've stumbled over this solution. It works, but I don't know how and why. It's neuron-local and works without ...
user avatar
  • 99
1 vote
0 answers
57 views

In SIFT, how is the coordinate system being rotated?

I need to understand how SIFT calculates the descriptors for the keypoints. Intuitively, I understand that it takes each keypoint, calculates the gradients for each pixel in a neighborhood of the ...
user avatar
7 votes
1 answer
3k views

What language is the GPT-3 engine written in?

I know that the API is python based, but what's the gpt-3 engine written in mostly? C? C++? I'm having some trouble finding this info.
user avatar
  • 195
1 vote
1 answer
80 views

Which approach should I use to classify points above and below a sine function $y(x) = A + B \sin(Cx)$?

In a linear regression problem, a line can divide a data set into two categories. So, basically, points above the line belong to category 1, and points below the ...
user avatar
  • 111
0 votes
0 answers
61 views

Genetic algorithm stuck and cannot find an optimal solution

I'm working on SLAP (storage location assignment problem) using genetic algorithm implemented manually in the C++ programming language. The problem is fairly simple, we do have ...
user avatar
  • 213
4 votes
1 answer
387 views

Neural network doesn't seem to converge with ReLU but it does with Sigmoid?

I'm not really sure if this is the sort of question to ask on here, since it is less of a general question about AI and more about the coding of it, however I thought it wouldn't fit on stack overflow....
user avatar
4 votes
1 answer
96 views

Is it expected that adding an additional hidden layer to my 3-layer ANN reduces accuracy significantly?

I've been using several resources to implement my own artificial neural network package in C++. Among some of the resources I've been using are https://www.anotsorandomwalk.com/backpropagation-...
user avatar
  • 25
2 votes
1 answer
233 views

How do you go from the last convolutional layer to your first fully connected layer?

I'm implementing a neural network framework from scratch in C++ as a learning exercise. There is one concept I don't see explained anywhere clearly: How do you go from your last convolutional or ...
user avatar
1 vote
0 answers
42 views

Any good resources for learning programming GPU level operations? [closed]

I want to be able to improve my lower level device specific programming abilities to assist in future endeavors. Examples would be learning to write custom tensorflow operations in C++ optimized to ...
user avatar
  • 2,249
24 votes
4 answers
62k views

Why does C++ seem less widely used than Python in AI?

I just want to know why do machine learning engineers and AI programmers use languages like Python to perform AI tasks and not C++, even though C++ is technically a more powerful language than Python.
user avatar
2 votes
1 answer
2k views

Value iteration algorithm from pseudo-code to C++ [closed]

I am having a difficult time translating this pseudocode into functional C++ code. At line 10: The value function is represented as V[s], which has bracket notation-like arrays. Is this a separate ...
user avatar