People who code: we want your input. Take the Survey

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
0
votes
1answer
46 views

Seeking advice: Building a NLP in C++ [closed]

Context: I'm taking an advanced C++ course and there is a large 2 month project of my choosing that I'll be starting soon. I want to build a NLP that can do text completion, but I'm new to this area ...
6
votes
1answer
2k 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.
1
vote
1answer
63 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 ...
0
votes
0answers
18 views

Neural Network trains towards 1 despite target

So I'm trying to make my first neural network and have just finished my back propagation functions. I got the algebra from brilliant and thought I'd understood it, but my bug proves otherwise. The bug ...
0
votes
0answers
42 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 ...
3
votes
1answer
168 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....
4
votes
1answer
79 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-...
2
votes
1answer
185 views

Convolutional layer to Fully Connected Layer implementation

Im 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/pooling/...
1
vote
0answers
35 views

Any good resources for learning programming GPU level operations?

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 ...
2
votes
1answer
1k views

How to export Pytorch Deep Neural Networks trained model to C++ program to use it from C++? [closed]

I want to build a DNN model that I will later integrate into a C++ program. I heard that PyTorch model is hard to load it on C++ and the integration requires extra code, and it's complicated. I have ...
4
votes
1answer
263 views

Algorithm For Making Balanced Weapons In A Game?

I am trying to make balanced weapon pairs. So there are five stats per weapon, and I am simulating a number of combats (1000) with different stats randomized, and counting the win, lose, and draw of ...
3
votes
3answers
2k views

Is there something like OpenCV for voice recognition and NLP? [closed]

As you know, OpenCV is a great open-source library for image recognition and related tasks. Is there a similar library for voice recognition and natural language processing (NPP)? I know espeak for ...
20
votes
4answers
50k 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.
2
votes
1answer
1k views

Value iteration algorithm from pseudo-code to C++

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 a bracket notation like arrays. Is this a separate ...
2
votes
3answers
1k views

How and where can I start learning AI if I have considerable knowledge of Java & C++? [closed]

I have deep interest in AI and want to start learning how to implement current method. I know about java and C++; are these languages sufficient? I'd appreciate suggestions regarding free online ...