Posts

Showing posts from February, 2021

machine learning

 testing splitting and training suppose i give a data set of house prices and from that i split it and then train it so i can figure it out what is it accuracy if we give any new number to it can it give a close answer that what this . labels and features Feature : Features are individual independent variables that act as the input in your system. Prediction models use features to make predictions. New features can also be obtained from old features using a method known as ‘feature engineering’. More simply, you can consider one column of your data set to be one feature. Sometimes these are also called attributes . And the number of features are called dimensions . . Label : Labels are the final output. You can also consider the output classes to be the labels. When data scientists speak of labeled data, they mean groups of samples that have been tagged to one or more labels.

1 st semester cf lab presentation

 

bmrc calculator

 # -*- coding: utf-8 -*- #randomly generating exercises for confused people to help them lose wight import random  class Exercise:     def week (self):         print(" 1-mon\n 2-tue\n 3-wed\n 4-thur\n 5-fri\n 6-sat\n 7-sun")     def exe (self):         list_exe=[ ]         c=5         for i in range(c):             d=input('enter exercises you cannot decide from = ')             list_exe.append(d)             print(list_exe)             b=random.choice(list_exe)             print( b)         a=random.randint(1, 7)         print(' The day you will do this exercise = ',a)      exercise= Exercise()      print(exercise.week())      print(exercise.exe()...

HTML project

 <!DOCTYPE html> <html>   <head>     <style>            h1   {color:grey;} </style>     <head/> <h1> Choice For Best Resturants In Karachi </h1>  <form> <label> NAME </label><br> <input  type="text"><br> <label>  PROFESSION </label><br> <input type="text"><br> <label>AGE:</label><br> <input type="integer"><br> <label>Your choice </label><br> <input type="radio">khyber shinwari <br> <input type="radio">Bon Bistro <br> <input type="radio">burger in law<br> <input type="radio">del frio <br> <input type="radio">kaybees <br> <input type="text" value="submit">

random password generator

 bank password generator # -*- coding: utf-8 -*- # BANK RANDOM PASSWORD GENERATOR  import string import random letter=string.ascii_letters number=string.digits chars=string.punctuation name=input("Enter Your name     ") try:                 pass_len=int(input('length of the password you want to generate =  '   ))    except ValueError:     print('Oops sorry invalid input given please try again')         pass_list=[] pass_list.extend(list(letter)) pass_list.extend(list(number)) pass_list.extend(list(chars)) b=random.shuffle(pass_list) a="".join(pass_list[0:pass_len])  # concatinate characters to idle string  print(f"Your password  is =  \n{a}   \nis assigned to {name} "  ) print("Total number of characters of password ",len(a)) def account_number():     number=string.digits     pass_list=[]     pass_li...