Month: April 2021

A Simple Example of Python Objects and Classes [+Video]

In Python, everything is an object. Even integers are objects — this is different from programming languages like Java where integers, floats, and Booleans are primitive data types. In this way, Python is built on a rigorously consistent object-oriented paradigm. Considering that objects are everywhere in Python, object-oriented programming is not well studied by Python …

A Simple Example of Python Objects and Classes [+Video] Read More »

Top 37 Python Machine Learning Library Cheat Sheets

This article is a collection of useful machine learning cheat sheets focusing on the Python libraries such as Theano, Keras, TensorFlow, PyTorch, NetworkX, and other ML-related Python libraries. You may want to check out these great resources that cover many of these topics at once: https://becominghuman.ai/cheat-sheets-for-ai-neural-networks-machine-learning-deep-learning-big-data-science-pdf-f22dc900d2d7 https://gto76.github.io/python-cheatsheet/ https://www.pythonsheets.com/ Theano Cheat Sheets Theano is a Library …

Top 37 Python Machine Learning Library Cheat Sheets Read More »

How to Build and Host Your Python Web App for Free

Hey Finxters! Have you ever felt surrounded by developers boasting from their latest app in prod hosted in the cloud?  Or the need for making yours too but overwhelmed by the technicalities involved? Needed to set up quickly and easily a mini data science demo website without resorting to web developers? Or simply wanting to …

How to Build and Host Your Python Web App for Free Read More »

Static and Dynamic Attributes in Python – What’s the Difference?

Quick Answer: Static attributes are variables defined once for the class and shared by all instances. Dynamic attributes are variables defined for individual instances only. Static variables are used as a “fall-back” when there are no explicit dynamic attributes defined for the instances. When you try to “overwrite” a static attribute such as in x.attr …

Static and Dynamic Attributes in Python – What’s the Difference? Read More »

Machine Learning Linear Regression Python

Python Linear Regression with sklearn – A Helpful Illustrated Guide

💡 This tutorial will show you the most simple and straightforward way to implement linear regression in Python—by using scikit-learn’s linear regression functionality. I have written this tutorial as part of my book Python One-Liners where I present how expert coders accomplish a lot in a little bit of code. Feel free to bookmark and download …

Python Linear Regression with sklearn – A Helpful Illustrated Guide Read More »

Python Set remove()

Python’s set.remove(x) method removes an element x from this set if it is a member, otherwise it raises a KeyError. Here’s a minimal example where you remove the string element ‘Bob’ from the set by means of the s.remove() method: Syntax Let’s dive into the formal syntax of the set.remove() method. set.remove(element) Argument Data Type …

Python Set remove() Read More »