newchit

Implementation of KNN ALGORITHM -LAB PROGRAM

from sklearn.datasets import load_iris

from sklearn.neighbors import KNeighborsClassifier

from sklearn.model_selection import train_test_split

importnumpy as np

# Load the Iris dataset

dataset = load_iris()

# Split the dataset into training and test sets

X_train, X_test, y_train, y_test = train_test_split(dataset.data, dataset.target, test_size=0.2, random_state=0)

print("Training labels:", y_train)

# Initialize and fit the KNN classifier

kn = KNeighborsClassifier(

...

See on Student Notes »

Pps eng

Q.1) Define a function with suitable example? Explain need for a function Ans- A function is a block of organized and reusable program code that perform single, specific, and well defined task. Python enables its programmer to break up a program into functions, Therefore, the code of one function is completely insulated from the codes of the other function. A function f that uses another function g is known as the calling function and g is known as the called function. Syntax:

def <space>

...

See on Wikiteka »

wuihlwjod;qw

exp 01 NETWORK TRAFFIC ANALYSIS IN ICS/SCADA

###tools - wireshark

###objectives = use wireshark to capture and analyze network traffic to detect anomalies such as unauthorized commands or network scanning
###deliverable = a detailed report of the traffic patterns and recommendations for maitigations

##wireshark - Wireshark is a network protocol analyzer used to capture and inspect data packets in real time.

###installing wireshark on Linux :

step 01 = update package lists  =  sudo apt update
step

...

See on Wikiteka »

adbfhu

A PDA accepts an input string by final state if, after reading the entire input, it reaches a final state, regardless of the contents of the stack.

A problem is undecidable if there is no algorithm that can determine the answer (yes or no) for all possible inputs in a finite amount of time.

A Turing Machine consists of a tape, a tape head, a finite set of states, an input alphabet, a tape alphabet, a transition function, and a start, accept, and reject state.

The lexical analyzer (scanner) reads

...

See on Student Notes »

английский

ART
Topic: Famous Paintings of the World

Example 1: Mona Lisa by Leonardo da Vinci

Value: This painting is a symbol of the Renaissance [rəˈneɪsəns] and
reflects the genius of da Vinci and the mystery of the female portrait.

Example 2: The Starry Night by Vincent van Gogh

Value: It shows emotional perception of nature and is important 

for understanding Post-Impressionism.

Example 3: Guernica [ˈgɜːnɪkə] by Pablo Picasso

Value: This painting symbolizes anti-war protest and reflects

...

See on Wikiteka »

Unit2

The Open Web Application Security Project (OWASP) is a non-profit foundation providing guidance on developing, purchasing, and maintaining trustworthy and secure software applications. It's an online community that produces free articles, methodologies, documentation, tools, and technologies in IoT, system software, and web application security.
Key Aspects of OWASP:
 * Origin: Started by Mark Curphey on September 9, 2001.
 * Leadership: Jeff Williams was the volunteer Chair from late 2003 to September

...

See on Wikiteka »

english

1) why did the romans go to great britain and what did they do there?
The Romans went to Great Britain for several reasons: Expansion of the Roman Empire, Resources: the romans were attracted by the rich agriculture of the south, tin and lead in the west, the availability of slaves and britain's strategic importance as an offshore base. The Romans built paved roads, they also connected the towns that developed as military, administrative and trading centres.

2) where did the anglo-Saxon come from?
...

See on Student Notes »

amir

A math equations and numbers  AI-generated content may be incorrect.H8KHmmfXYSC4gAAAABJRU5ErkJggg==h+WgX7XSWvw6QAAAABJRU5ErkJggg==jXWASn9Opt4AAAAASUVORK5CYII=wH+DLuCtjZozwAAAABJRU5ErkJggg==SYQtcDRqJJ4vx6UEJcpJCt9eTpgw0g6OwhSzgICAgICAwH8YwUkUEBAQEBAQEBBogDBeJiAgICAgICAg0ADBSRQQEBAQEBAQEGiA4CQKCAgICAgICAiYAfwfFbEjQsViLAEAAAAASUVORK5CYII=A black text on a white background  AI-generated content may be incorrect.2giNuqLGfQyAAAAAElFTkSuQmCCA mathematical equation with numbers and a square  AI-generated content may be incorrect.4). There were 855 major league baseball players in 2012 and their mean salary was u = 3.44 million dollars with standard deviation o = 4.70 million dollars. If we take random samples of size n = 50 players and calculate the mean salary, in millions of dollars, of each sample, describe the shape, center, and spread of the distribution of sample means.

ChatGPT said:

To describe the shape, center, and spread of the distribution of sample means, we use the Central Limit Theorem (CLT), which applies...

See on Wikiteka »

istoruja

Kapeti (987-1328); Valoa (1328-1589); Burboni (1589-1792);

Kapeti: Ig Kapet - u početku je vladao u maloj oblasti između Pariza i Orleana (Ille de France) taj kraljevski posed se zove DOMEN. pariz postaje prva stalna prestonica Evropeu 12 veku i njen simbol je katedrala Notr dam. Jačanje centralne vlastije počelo za vreme Filipa Avgusta II od 1180-1223. On je putem diplomatskih i vojnih veština uspeo da proširi svoj domen, izgradi činovnički aparat i formaira kraljevski savet (zmenilo feudalno

...

See on Wikiteka »