Posts

Machine Learning

All Dataset files= HERE Experiment 1 Copy Code 1 Exp 1: Write a Program to predict the price of the Uber ride from a given pickup point to the agreed drop-off location import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt train_data = pd.read_csv('/content/drive/MyDrive/ML Lab Sem 7/uber.csv') train_data.head(2) train_data.drop(labels='Unnamed: 0',axis=1,inplace=True) train_data.drop(labels='key',axis=1,inplace=True) train_data.info() train_data['pickup_datetime'] = pd.to_datetime(train_data['pickup_datetime'],errors='coerce') train_data.info() train_data.isnull().sum() # to check no of null values train_data.dropna(axis = 0, inplace= True) train_data.isnull().sum() train_data["pickup_latitude"].max() min_longitude = -180 max_longitude = 180 min_latitude = -90 max_latitude = 90 invalid_rows = train_data[ (train_data["dropoff_latitude...

java exp

all files= Experiment 1 Copy Code 1 package experiment; public class Exp1 { public static void main(String[] args) { if (args.length == 0) { System.out.println("Please provide some numbers as command-line arguments."); return; } double sum = 0; int validCount = 0; for (int i = 0; i Experiment 2 Copy Code 2 package experiment; public class Exp2 { public static void main(String[] args) { // 1. Widening Type Casting (Implicit Casting) int intValue = 100; long longValue = intValue; float floatValue = longValue; System.out.println("Widening Casting (Implicit):"); System.out.println("int to long: " + longValue); System.out.println("long to float: " + floatValue); // 2. Narrowing Type Casting (Explicit Casting) double doubleValue = 99.99; ...

power bi

data set link data set link data set link

Blockchain Experiments

Experiment 1: Installation of Metamask Copy Code 1 Meta-mask: • MetaMask is a cryptocurrency wallet and gateway to blockchain applications, primarily focusing on Ethereum and compatible networks. • It is available as a browser extension and a mobile app, enabling users to manage their digital assets securely and interact with decentralized applications (dApps) directly from their browser or mobile device. Here are its key features: • Key features: 1. Wallet Functionality: Securely store, send, and receive cryptocurrencies, including Ether (ETH) and ERC-20 tokens. Generate and manage private keys locally on the user's device. 2. Integration with dApps: Easily connect to Ethereum-based dApps, such as DeFi platforms, NFT marketplaces, and gaming applications. Simplifies signing transactions and interacting with smart contracts. 3. Network Support: Supports the Ethereum mainnet, testnets, and custom networks like Binance Smart Chain, P...

Deep Learning Blog

all files= github Experiment 1 Copy Code 1 # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Salary_Data.csv') X = dataset.iloc[:, :-1].values # Features (Years of Experience) y = dataset.iloc[:, -1].values # Target (Salary) # Splitting the dataset into the Training set and Test set from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=1/3, random_state=0) # Training the Simple Linear Regression model on the Training set from sklearn.linear_model import LinearRegression regressor = LinearRegression() regressor.fit(X_train, y_train) # Predicting the Test set results y_pred = regressor.predict(X_test) # Visualizing the Training set results plt.scatter(X_train, y_train, color='red') plt.plot(X_train, regressor.predict(X_train), color='blue') plt.title('Salary v...

Experiment cse skill

all files= github Experiment 1: Basic string Operations Copy Code 1 print("Basic Strings Operation in Python:") word1 = input("Enter any word: ") word2 = input("Enter any word: ") print("Concatenation of word1 and word2: ") print(word1+" "+word2) print(f"To capitalize all letter in word1: {word1.upper()} ") print(f"To make all letter in word1 into lower case: {word1.lower()} ") print(f"Slicing in Python: {word1[::-1]}") print(f"Number of times letter 'e' appeared in word1: {word1.count('e')}") print(f"The position of letter 'd' in word2: {word2.index('d')}") print("\nBasic Maths operations in Python: ") a = int(input("Enter number 1: ")) b = int(input("Enter number 2: ")) print(f"Addition of {a} and {b}: {a+b}") print(f"Subtraction of {a} and {b}: {a-b}") print(f"...

Experiments

Experiment 1: Swap two numbers and check positive or negative Copy Code 1 def swap(a,b): temp = b b = a a = temp return a,b def numchecker(num): if num>0: return 1 elif num Experiment 2: To check palindrome number and string and find factorial of a number Copy Code 2 def number_palindrome(num): if 0 >= num 0: dig = num % 10 rev = rev * 10 + dig num = num // 10 if temp == rev: print("The number is a palindrome!") else: print("The number isn't a palindrome!") def string_palindrome(): word = input("Enter any word: ") temp = word temp = word[::-1] if word == temp: print("The string is palindrome") else: print("The string isn't a palindrome") def factorial(num): f = 1 if num Experiment 3: ...

Solar Energy Advancements: Making India a World Leader

Image
  Tech Advancements in Solar Energy Solar energy is one of the most promising renewable energy sources, and it has seen significant technological advancements in recent years. These advancements have made solar energy more efficient, affordable, and accessible than ever before. Improved solar cell efficiency One of the most significant advancements in solar technology has been the improvement in solar cell efficiency. Solar cells convert sunlight into electricity, and the more efficient a solar cell is, the more electricity it can produce from a given amount of sunlight. In the past few decades, solar cell efficiency has increased dramatically. In 1976, the best solar cells had an efficiency of just 12.6%. Today, the most efficient solar cells have an efficiency of over 30%. This increase in efficiency has made solar energy much more cost-effective. In the past, solar panels were too expensive for most people to afford. But today, the cost of solar panels has fallen so mu...