[Machine Learning] Octave Basic Operations
learning MACHINE Basic operations Octave
2023-09-14 08:59:13 时间
You can do baisc math:
5+6 32-8 1/2 2^3 1 == 2 % ans = 0 means false 1 ~=1 % 1 not equals to 2. ans = 1 means true 1 && 0 1 || 0 xor(1, 0)
Change the output:
PS1('>> ')
Semicolon:
If you don't use semicolon, it prints the output, if you add semicolon, it doesn't print output:
disp(a): print value:
a=pi; disp(sprintf('2 decimals: %0.2f', a)) # 2 decimals: 3.14
Format:
Matrix / Vector:
Step increasment:
v = 1:0.2:2 # a row vector start from 1, each element increase by 0.2 until 2
if step is 1:
v = 1:6 # from 1 to 6
2by3 matrix with all 1:
ones(2,3) """ ans = 1 1 1 1 1 1 """
c = 2*ones(2,3)
"""
c =
2 2 2
2 2 2
"""
w = zeros(1,3) w= rand(3,3) # uniform distribution between zero and one. w = randn(3,3) # Gaussian distribution with mean zero and variance or standard deviation equal to one
More complex matrix:
w = -6 + sqrt(10)*(randn(1, 10000));
hist(w)
hist(w, 50)
相关文章
- ≪统计学习精要(The Elements of Statistical Learning)≫课堂笔记(一)
- [Machine Learning] Neural Networks - back propagation - Put it together
- [Machine Learning] Gradient Descent in Practice I - Feature Scaling
- [Machine Learning] Gradient Descent For Multiple Variables
- [Machine Learning] Multivariate Linear Regeression
- 《MATLAB Deep Learning:With Machine Learning,Neural Networks and Artificial Intelligence》选记
- A brief introduction to weakly supervised learning(简要介绍弱监督学*)
- (1)Deep Learning之感知器
- 学会学习(Learning how to learn)
- Machine Learning on Spark——第三节 统计基础(一)
- [Machine Learning] Backpropagation Algorithm
- [Machine Learning] Neural Networks Model representation
- [Machine Learning] Gradient Descent For Multiple Variables
- [Machine Learning] Octave Vectorization
- 【PyTorch】教程:Transfer learning
- ML之PDP/ICE/PFI/GS&LS/LIME/SHAP:《Interpretability Methods in Machine Learning: A Brief Survey机器学习可解释性
- ML:MLOps系列讲解之《基于ML的软件的三个层次之02 Model: Machine Learning Pipelines——2.6 ML Model serialization forma》解读
- 基于Deep Learning 的视频识别方法概览
- ML:MLOps系列讲解之《基于ML的软件的三个层次之02 Model: Machine Learning Pipelines——2.6 ML Model serialization forma》解读
- EL:集成学习(Ensemble Learning)的概念讲解、问题应用、算法分类、关键步骤、代码实现等相关配图详细攻略
- Paper:《Multimodal Machine Learning: A Survey and Taxonomy,多模态机器学习:综述与分类》翻译与解读
- ML之PDP/ICE/PFI/GS&LS/LIME/SHAP:《Interpretability Methods in Machine Learning: A Brief Survey机器学习可解释性
- 应用机器学习的建议(Advice for Applying Machine Learning)
- machine learning in coding(python):使用贪心搜索【进行特征选择】
- 【模式识别】Learning To Rank之RankBoost
- 【文献学习】RoemNet: Robust Meta Learning based Channel Estimation in OFDM Systems
- 【文献学习】Signal Demodulation With Machine Learning Methods for Physical Layer Visible Light Communicati
- RL之Q Learning:利用强化学习之Q Learning实现走迷宫—训练智能体走到迷宫(复杂迷宫)的宝藏位置
- Improving Few-Shot Learning with Auxiliary Self-Supervised Pretext Tasks(论文解读)
- deep learning with keras (二) lenet 对手写数字识别