Python Articles - Page 116 of 929

Spaceship Titanic Project using Machine Learning in Python

Jaisshree
Updated on 21-Jul-2023 11:26:13

424 Views

The original Titanic project in Machine learning is aimed at finding whether a person on the Titanic will survive or not. However, this project named the spaceship Titanic is a bit different. The problem statement here is that a spaceship has people going on a trip in space. But due to a collision, a few people need to be transported to some other dimension or planet. Now this can’t be done randomly. So, we will use a Machine Learning technique in Python to find out who will get transported and who will not. Algorithm Step 1 − ... Read More

Skin Cancer Detection using TensorFlow in Python

Jaisshree
Updated on 21-Jul-2023 11:01:04

1K+ Views

Early detection of any disease, especially cancer, is very crucial for the treatment phase. One such effort made in this direction is the use of machine learning algorithms to detect and diagnose skin cancer with the help of a machine learning framework like Tensorflow. The traditional method of cancer detection is quite time-consuming and requires professional dermatologists. However, with the help of TensorFlow, not only can this process be made fast, but more accurate and efficient. Moreover, people who do not get timely access to doctors and dermatologists, can use this meanwhile. Algorithm Step 1 − Import the ... Read More

Rainfall Prediction using Machine Learning

Jaisshree
Updated on 21-Jul-2023 10:55:18

748 Views

The power of machine learning has enabled us to predict rainfall with several algorithms, including Random Forest and XGBoost. There are no best algorithms for predicting rainfall, every algorithm has its advantages and disadvantages. The Random Forest is efficient with small datasets, while the XGboost is efficient with large datasets. In the same way, we can categorise other algorithms based on the needs of our projects. Our goal here is to build a predictive machine-learning model of rainfall based on Random Forests. Algorithm Import all the required libraries such as Pandas, Numpy, Sklearn, and matplotlib. Load the ... Read More

Medical Insurance Price Prediction using Machine Learning in Python

Jaisshree
Updated on 21-Jul-2023 10:52:41

817 Views

Like in many other sectors, predictive analysis is quite helpful in the finance and insurance sector as well. Using this machine learning technique, we can find out useful information about any insurance policy and therefore save huge sums of money. Here, we will be using this approach of predictive analysis for a medical insurance dataset. The problem statement here is that we have a dataset of some people with certain attributes. Using machine learning in Python, we have to find out relevant information from this dataset and also have to predict the insurance price a person will have to ... Read More

Mobile

How to Compute the Average of a Column of a MySQL Table Using Python?

Prince Yadav
Updated on 20-Jul-2023 20:31:42

528 Views

In today's data−driven world, for businesses and organizations efficiently analyzing and manipulating large data sets is difficult. MySQL, as a popular open−source relational database management system, and Python, as a versatile programming language, are two latest and trending technologies that when combined, can help achieve this goal. In this article, we will guide you through the process of computing the average of a column of a MySQL table using Python. From establishing a connection to your MySQL database, executing an SQL query to compute the average of a column, and fetching the result, we will provide a step−by−step guide ... Read More

How to Compute Derivative Using Numpy?

Prince Yadav
Updated on 20-Jul-2023 20:29:33

10K+ Views

Calculus, the study of continuous change, is a fundamental subject in mathematics that has numerous applications in fields ranging from physics to economics. One of the key concepts in calculus is derivative, which measures the instantaneous rate of change of a function at a given point. If we have a function f(x), the derivative of that function at point x can be calculated as the limit of the difference quotient as h approaches zero: f'(a) = lim(h -> 0) [(f(a+b) - f(a))/h] However, computing derivatives can be a time−consuming and error−prone process when done by hand. Luckily, numerical computing ... Read More

How to Compute Cross-Correlation of two given Numpy Arrays?

Prince Yadav
Updated on 20-Jul-2023 20:26:51

2K+ Views

Cross−correlation is a concept widely used in signal processing and image processing to determine the similarity between two signals or images. Python, being one of the most popular programming languages, offers an efficient and user−friendly way to compute cross−correlation between numpy arrays using the NumPy library. The NumPy library offers the numpy.correlate() function to calculate the cross−correlation of one−dimensional numpy arrays. However, for two−dimensional arrays, we need to first flatten them and then use the same function to compute the cross−correlation. In this article, we will provide a detailed discussion on how to compute cross−correlation of two given numpy ... Read More

How to Compress Images Using Python and PIL?

Prince Yadav
Updated on 20-Jul-2023 20:24:17

15K+ Views

In today's digital era, images have become a necessary part of our lives. They play an important and significant role in communication and expression across a wide range of platforms, from social media to websites. However, high−quality images can consume a considerable amount of storage space and it'll result in slower website loading times and longer upload times. Image compression becomes applicable in this situation. By reducing the size of an image, you can ensure faster loading times, lower bandwidth usage, and more storage space. In this article, we will look into the process of compressing images using Python and ... Read More

How to Compare two Dataframe with Pandas Compare?

Prince Yadav
Updated on 20-Jul-2023 20:13:51

1K+ Views

If you work with data analysis or data science, then you already know the importance of comparing DataFrames. Fortunately, the Python library, pandas, offers a handy " compare " method that allows you to compare two DataFrames and highlight their differences. This method is incredibly useful for identifying discrepancies between sets of data and making informed decisions based on those differences. In this article, we will explore how to use pandas compare to compare two DataFrames and dive into some of the customization options available. Whether you're an experienced data analyst or a fresher, this article will provide you ... Read More

How to Compare JSON Objects Regardless of Order in Python?

Prince Yadav
Updated on 20-Jul-2023 20:09:03

13K+ Views

JSON, which stands for JavaScript Object Notation, is a widely used data format for exchanging data on the web. In Python, it is common to compare two JSON objects to determine if they are the same. However, comparing JSON objects can be a challenging task when the objects have the same elements but in different orders. In this article, we will explore three different methods for comparing JSON objects in Python regardless of their order. We will discuss techniques for converting JSON objects to dictionaries, sorting JSON objects, and utilizing the jsondiff third−party library to compare JSON objects. Each method ... Read More

Advertisements