Artificial Intelligence (AI) Notes PDF
Document Details
Uploaded by BrainiestSteelDrums374
Tanta University
Tags
Summary
These notes cover various aspects of Artificial Intelligence (AI), including agent definitions, applications in various fields like finance, robotics, and the web. The material also delves into the concept of rational agents and performance measures within the context of AI. Furthermore, it provides an introduction to essential Python programming concepts, including variables (numbers, strings, booleans), and string manipulation techniques.
Full Transcript
Artificial Intelligence(AI) section2 1) What is agent? 2) Applications of agent in different fields? 3) Vacuum_cleaner agent? 4) Rational agent ,, agent ? 5) Variables in python ? 1) What is agent ? Agent : is anything that senses environment using sensors and act upon that envir...
Artificial Intelligence(AI) section2 1) What is agent? 2) Applications of agent in different fields? 3) Vacuum_cleaner agent? 4) Rational agent ,, agent ? 5) Variables in python ? 1) What is agent ? Agent : is anything that senses environment using sensors and act upon that environment through its actuators. sensor: is the part that receives input from the environment. actuators: is the part that helps interact with the environment. percept: we use the term perception to refer to an agent's perceptual input at any given moment. percept sequence: agent's percept sequence is the complete history of everything the agent has ever perceived. agent function(control policy function): is a set of condition-rules based on it the agent can make decision"action". 2) Applications of agent in different fields ? 3) Vacuum_cleaner agent ? 4) performance measure,,Rational agent ? Performance measure: An objective criterion (“utility function”) for success of an agent's behavior. Performance measures of a vacuum-cleaner agent: amount of dirt cleaned up, amount of time taken, amount of electricity consumed, level of noise generated, etc. Performance measures self-driving car: time to reach destination (minimize), safety, predictability of behavior for other agents, reliability, etc. Performance measure of game-playing agent: win/loss percentage (maximize), robustness, unpredictability (to “confuse” opponent), etc. Rational Agent: For each possible percept sequence, a rational agent should select an action that maximizes its performance measure (in expectation)given the evidence provided by the percept sequence and whatever built in knowledge the agent has. rationality: do the right thing. -maximize expected performance -information gathering,exploration,learning. ---------------------------------------------------------------------- ---------------------------------------------------------------------- ---- 5) variables in python ? some important information:- Run == F5 space in the first of line "error" python is case sensitive types of variables:- · string,float,integer,boolean,complex,list,tuple, set,dictionary 5.1) number variables(integer,float):- - to define number variable - to convert from datatype to another - arithmatic operation on number variable :- - math library :- is a set of methods that you can invoke them in arithmatic operations 5.2) string variable:- - to define string variable - to access any character in string,last index is not included - to repeat string or character in string - to split string ,depending on certain symbols,symbols "deleted" split - to split string depending on certain symbols ,symbols "included" partition,must contain argument - to search for word or character in string find,return index of word or character if character not found return -1 - to return index througth character,index,if character not found return error - to replace character with another,replace - To find out how many times a letter or character is repeated,count - to display all characters capital upper - to display all character small lower - to diplay the first character of statement capital capitalize - to traverse the state of character swapCase - to display the first character from each word capital title 5.3) boolean variable:-