Questions tagged [c]

15 questions
46
votes
12 answers

Data Science in C (or C++)

I'm an R language programmer. I'm also in the group of people who are considered Data Scientists but who come from academic disciplines other than CS. This works out well in my role as a Data Scientist, however, by starting my career in R and only…
Hack-R
  • 1,919
  • 1
  • 21
  • 34
9
votes
2 answers

Is there a C library for machine learning algorithms?

Are there any machine learning libraries for C. Specifically interested in unsupervised learning.
6
votes
4 answers

Why aren't languages like C, C++ used for data analytics instead of R, Python?

I have started learning data science using R, however I have C++ as a subject this semester, and my project is to predict the outcome of a game using C++. I have not come across many instances (close to none, I did find libraries like Shark though)…
Ketakee Nimavat
  • 81
  • 1
  • 2
  • 8
3
votes
2 answers

Is it possible to deploy a python trained machine learning model (e.g. a .pkl file) in C language?

I would like to train my machine learning using Python and libraries such as tensor flow, keras, and scikit-learn. After trained, I would like to export this trained model to a file, so far I have been using the library pickle. I feel that this is…
FFLS
  • 161
  • 4
3
votes
0 answers

Best linear algebra library for C++?

I have been trying to find the substitute of numpy and perform some linear algebra using C++. Here's a list of the libraries I have encountered: Eigen Armadillo Dlib GNU Scientific library Please guide which is the best library of all and is most…
thanatoz
  • 2,365
  • 4
  • 15
  • 39
2
votes
0 answers

Can Convolutional Neural Networks (CNN) be represented by a Mathematical formula?

Let's say that I already trained my CNN. Is there anyway of my ouput to be represented as a formula just like a perceptron can (x1w1 + x2w2 + ... = PREDICTION). It does not matter if the formula is more complicated than the perceptron one, but in…
FFLS
  • 161
  • 4
2
votes
1 answer

How to interpret Sum of Squared Error in a classification task

I am working on ANN. I have 2497 training examples and each of them is a vector of 128, so the input size is 128. Number of neurons in hidden layer is 64 and number of output neurons is 6 (since classes are six). My Target vector looks something…
1
vote
1 answer

Neural network with multiple layer: learning function

Here is my code to implement the learning of my neural network using the backpropagation learning. The algorithms is stable but I don't learn correctly the output. Do you see anything wrong in my learning process? //### Parameter ### #define…
White
  • 11
  • 1
1
vote
0 answers

Loading file into and out of HDFS via system call/cmd line vs using libhdfs

I am trying to implement a simple C/C++ program for the HDFS file system like word count, it takes a file from the input path puts it into HDFS (where it gets split), processed my map-reduce function and gives an output file which I place back to…
n0unc3
  • 11
  • 1
1
vote
0 answers

For diagonal difference this logic is showing a garbage value. Where am I doing wrong?

int main() { int i,a[3][3]; int diagonal_diff; int lsum=0,rsum=0; for(i=0;i<3;i++){ lsum=lsum+a[i][i]; rsum=rsum+a[i][2-i]; } diagonal_diff= abs(lsum-rsum); printf("%d",diagonal_diff); }
1
vote
1 answer

Is there a python version of Mitchell's face pose recognition code?

The original code for chapter 4 in Tom Mitchell's book for recognizing face pose from images is here: http://www.cs.cmu.edu/afs/cs.cmu.edu/user/mitchell/ftp/faces.html But it's in C, not that there is anything wrong with that and I guess that's a…
mLstudent33
  • 574
  • 1
  • 4
  • 17
1
vote
1 answer

Precision/recall from out-of-bag predictions in RandomForestClassifier

I would like to use out-of-bag training/validation with a classifier such as RandomForestClassifier. Is it possible to get the out-of-bag predictions? I want the OOB predictions so I can compute precision/recall on instances not used to train the…
John
  • 219
  • 1
  • 4
  • 7
0
votes
1 answer

When would C become nescessary to do an analysis or manage data?

I use python in my day to day work as a research scientist and I am interested in learning C. When would a situation arise where python would prove insufficient to manipulate data?
0
votes
1 answer

How to implement Classification and Anomaly detection (C++)

I am creating a system using C++(DX11) and i'm reading raw data into my program, i want to classify what the 3D data-set i'm reading in is and detect any anomalies it may have when compared to a database of the same types of item. I've not really…
0
votes
2 answers

C++ return array from function

I would like to implement machine learning algorithm in C++ without using any C++ machine learning library. So I'm writing this initializer function for generating zero matrices but can't figure out how can I accomplish this. I'm actually trying to…