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.

GNU Octave is a high-level interpreted scripting language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave has a modular framework that allows it to utilize hardware such as GPUs, parallel compute clusters, and physical sensors.

Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. It is quite similar to Matlab, so many programs are easily portable.

It is extensible and customizable via user-defined functions written in Octave's own language, or via dynamically loaded modules written in C++, C, Fortran, or other languages.

Octave Online is a free GNU Octave editor and prompt in your browser. Octave Online is powered by the open-source GNU Octave project, whose syntax is mostly compatible with Matlab.

Resources

16 questions
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 CategoricalAttr takes one of three possible values: CategoricalAttrValue1, CategoricalAttrValue2 or…
IgorS
  • 5,444
  • 11
  • 31
  • 43
12
votes
1 answer

How do I implement the sigmoid function in Octave?

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
  • 223
  • 1
  • 2
  • 5
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 https://archive.ics.uci.edu/ml/datasets/YearPredictionMSD. Got an accuracy of 5.2 in training and test set with linear regression using gradient…
abhivij
  • 69
  • 6
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 networks.
MrPythonic
  • 17
  • 1
  • 5
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 programming language) as both are intended for numerical…
jr235
  • 23
  • 4
2
votes
2 answers

Applying neural network for simple x^2 function for demonstration purpose

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 simply squares first column And third column, my…
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 the cost function from scratch. Furthermore, I…
1
vote
0 answers

Octave or python for implementing Machine Learning

When is the need to learn octave or Mat Lab for Machine Learning? Are these required if you are proficient in python?
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 Error of the Estimate (is it the one I need to…
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: % Computes the value of the Powell Sum benchmark function. % SCORES = POWELLSUMFCN(X) computes the value of the Powell Sum function at % point X. POWELLSUMFCN accepts a matrix of size M-by-N and…
VansFannel
  • 229
  • 1
  • 11
1
vote
1 answer

How can I use octave function minimizers in c++?

I have downloaded and built octave library and it works fine . But I cannot call function minimizers like fminunc() , fmingc() etc to minimize my functions for performing logistic regression or using it in neural networks . Can these functions be…
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 training set (70%) and Cross Validation set(30%) and…
Overflow012
  • 119
  • 2
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 functions and try and train my neural network…
Vin
  • 89
  • 5
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 Andrew Ng Coursera course. I doubt that how exp(-z) is computed directly while z is a…
akib
  • 11
  • 1
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 addition, this dataset contains labels (Ground truth…
morteza
  • 103
  • 2
1
2