Insurance cost prediction using Linear Regression

Pytorch is an open-source machine learning library used for computer vision and Natural Language Processing (NLP). Pytorch provides two high-level features:

i)Tensor computing (like NumPy) with strong acceleration via graphics processing units (GPU)

ii)Deep neural networks built on a tape-based automatic differentiation system.

In this blog, we’re going to use information like a person’s age, sex, BMI, no. of children, and smoking habit to predict the price of yearly medical bills. This kind of model is useful for insurance companies to determine the yearly insurance premium for a person. …

Application of different PyTorch functions on tensors

In this blog, we will discuss a few of the most commonly used PyTorch functions used to perform different types of matrix operations.

PyTorch is an open-source machine learning library. Tensors are classes in Pytorch used to store and perform different types of operations on multidimensional arrays. Pytorch is used for applications such as computer vision and natural language processing, primarily developed by Facebook’s AI Research lab (FAIR). Although the Python interface is more polished and the primary focus of development, PyTorch also has a C++ interface.

Function 1— torch.matmul()

Helps to multiply two matrices. The syntax of the function is

torch.matmul(input, other

Sagnik Mukhopadhyay

Jadavpur University

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store