Python

Arithmetic Operations with methods in python

Introduction Arithmetic Operators in Python can perform addition, subtraction, multiplication, division, exponentiation, and modulus operators. In this blog, I am going to teach you how to do 4 basic arithmetic operations with methods in Python. Creating Functions Before we go into the meat and potatoes if this topic, let us first initialize our functions. In …

Arithmetic Operations with methods in python Read More »

Iris Classification using Logistic Regression

Logistic regression is the best regression approach to utilize when the dependent variable is dichotomous (binary). Like other regression studies, logistic regression is a predictive analysis. Logistic regression is a statistical approach for defining and explaining the relationship between one dependent binary variable and one or more independent variables that are nominal, ordinal, interval, or …

Iris Classification using Logistic Regression Read More »

How to Fix “AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’.” in Visual Studio Code

If you are new to Python and on your way to trying out in making a Machine Learning script and using TensorFlow. As you go your way in coding, and decided to test and run the program. An error appeared stating “AttributeError: Module ‘Tensorflow’ Has No Attribute ‘Placeholder’“. Then this article will provide you the fix …

How to Fix “AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’.” in Visual Studio Code Read More »

How to Fix “ModuleNotFoundError: No module named ‘tensorflow’.” In Visual Studio Code

If you are new to Python and on your way to trying out in making a Machine Learning script and using TensorFlow. As you go your way in coding, and decided to test and run the program. An error appeared stating “ModuleNotFoundError: No Module Named ‘Tensorflow’“. Then this article will provide you the fix in …

How to Fix “ModuleNotFoundError: No module named ‘tensorflow’.” In Visual Studio Code Read More »

How to Fix “ModuleNotFoundError: No module named ‘pandas’.” in Visual Studio Code

If you are new to Python and on your way to trying out in making a Machine Learning script. As you go your way in coding, and decided to test and run the program. An error appeared stating “ModuleNotFoundError: No Module Named ‘Pandas’“. Then this article will provide you the fix in your issue. This …

How to Fix “ModuleNotFoundError: No module named ‘pandas’.” in Visual Studio Code Read More »

How to Fix “ModuleNotFoundError: No module named ‘sklearn’.” in Visual Studio Code

If you are new to Python and on your way to trying out in making a Machine Learning script. As you go your way in coding, and decided to test and run the program. An error appeared stating “ModuleNotFoundError: No Module Named ‘Sklearn’“. Then this article will provide you the fix in your issue. This …

How to Fix “ModuleNotFoundError: No module named ‘sklearn’.” in Visual Studio Code Read More »