Posts

Showing posts from October, 2025

Tensorflow, Pytorch, Flask, Fast API, Mongo DB, Agentic AI, Recommendation engines, Kubernates, Spark, Grafana

  TensorFlow – Beginner-Friendly Complete Notes 1. Introduction to TensorFlow What is TensorFlow? Open-source machine learning framework by Google. Used for deep learning, ML, and numerical computation. Works on CPU, GPU, TPU . Key Features: Easy model building (Keras high-level API). Runs on multiple devices. Large ecosystem (TensorBoard, TFLite, TF Serving). 2. Installation pip install tensorflow Check version: import tensorflow as tf print(tf.__version__) 3. Basic Building Blocks a) Tensors Tensors = multi-dimensional arrays (like NumPy but GPU-friendly). x = tf.constant([[1,2],[3,4]]) print(x) # 2D tensor Tensor Ranks: Scalar (0D), Vector (1D), Matrix (2D), Higher dimensions. b) Variables Trainable tensors, used to store weights. w = tf.Variable([0.5, 1.0]) c) Operations Math ops on tensors. a = tf.constant([1,2,3]) b = tf.constant([4,5,6]) print(tf.add(a,b)) # [5 7 9] 4. TensorFlow vs NumPy NumPy : C...