As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [octave]

GNU Octave is a free and open-source mathematical software package and scripting language. The scripting language is intended to be compatible with MATLAB, but the two packages are not interchangeable. Don’t use both the [matlab] and [octave] tags, unless the question is explicitly about the similarities or differences between the two.

Filter by
Sorted by
Tagged with
1 vote
2 answers

Python function returning a 4x4 matrix instead of a floating number like in an equivalent Octave function in a Linear Regression problem

I am trying to translate code from Octave to Python, and I am stuck. I am aware they are libraries out there such as scikit-learn etc., but for my own learnin,g I would like to be able to implement ...
Kader DJEHAF's user avatar
-1 votes
1 answer

How do I plot data in Octave?

I wanted to plot a data in Octave for a logistic regression problem my teacher in my university assigned me to solve. Let's say the input-training features is a matrix X and output is y=1 or y=0 To ...
MrPythonic's user avatar
2 votes
3 answers

Is GNU Octave a perfect place to code neural networks

GNU Octave is used for its simplicity and compiling speed to write numerical algorithms (such as eg machine learning problems), but I wanted to know if I can also use it for faster coding of neural ...
MrPythonic's user avatar
2 votes
1 answer

What are the differences and advantages of TensorFlow and Octave for machine learning?

I have been exploring the different libraries and languages you can use in order to implement machine learning. During this, I have stumbled upon a library TensorFlow and Octave(a high-level ...
jr235's user avatar
  • 23
1 vote
0 answers

Octave or python for implementing Machine Learning [closed]

When is the need to learn octave or Mat Lab for Machine Learning? Are these required if you are proficient in python?
Mayank Mishra's user avatar
0 votes
1 answer

How exp(-z) is working in a sigmoid function in neural networks while z is a matrix?

function g = sigmoid(z) %SIGMOID Compute sigmoid function %J = SIGMOID(z) computes the sigmoid of z. g = 1.0 ./ (1.0 + exp(-z)); end I'm going through the ...
akib's user avatar
  • 11
0 votes
1 answer

Higher dimension data visualization in Matlab/Octave

I am working on sparse recovery for a classification task. I use Pine hyperspectral dataset which is a freely available dataset and this image contains 200 Dimension (Depth/channels/bands). In ...
morteza's user avatar
  • 103
1 vote
1 answer

Problem with calculating error rate for KNN

I am trying to validate the accuracy of my KNN algorithm for the movie rating prediction. I have $2$ vectors: $Y$ - with the real ratings, $Y'$ - with predicted ones. When I calculate Standard ...
Dmitrij Kultasev's user avatar
1 vote
1 answer

Plot 2D function: do I need to pass all the values to the function?

I'm new with Octave and I need to plot this function: ...
VansFannel's user avatar
12 votes
1 answer

How do I implement the sigmoid function in Octave? [closed]

so given that the sigmoid function is defined as hθ(x) = g(θ^(T)x), how can I implement this funcion in Octave given that g = zeros(size(z)) ?
Shuryu Kisuke's user avatar
1 vote
1 answer

How can I use octave function minimizers in c++? [closed]

I have downloaded and built octave library and it works fine . But I cannot call function minimizers like fminunc() , fmingc() ...
Saksham's user avatar
  • 127
1 vote
1 answer

Trying determining degree polynomial for polynomical regression

I'm trying to predict the birth weight baby using polynomial regression model. First what I need know what degree polynomial should fit better to my data. In order to do that I split my dataset in ...
Overflow012's user avatar
1 vote
1 answer

Please suggest some simple functions that I can use to test my neural network implementation

I am a beginner and I have developed code in Octave to train a neural network (as part of Andrew Ng's coursera course). Now I would like to generate some datasets in Excel for simple mathematical ...
Vin's user avatar
  • 89
2 votes
2 answers

Applying neural network for simple x^2 function for demonstration purpose [closed]

I have tried to train a neural network for a simple x^2 function I developed training data in excel. First column (X) is =RANDBETWEEN(-5,5) i.e random integer between -5 and 5 Second column ...
Vin's user avatar
  • 89
3 votes
1 answer

Clarification about Octave data size limit

I'm just starting to work on a relatively large dataset after ML course in Coursera. Trying to work on Got an accuracy of 5.2 in training and ...
abhivij's user avatar
  • 69
200 votes
13 answers

K-Means clustering for mixed numeric and categorical data

My data set contains a number of numeric attributes and one categorical. Say, NumericAttr1, NumericAttr2, ..., NumericAttrN, CategoricalAttr, where ...
IgorS's user avatar
  • 5,434