In this assignment, you will use Python’s mlxtend.frequent_patterns to find the

In this assignment, you will use Python’s mlxtend.frequent_patterns to find the association rules satisfying given lift, confidence and support threshold for the list of transactions available at ‘online_retail.csv’ file.
Step 1 (35 points): Clean the data byremoving rows whose StockCode or Invoice values contain non-digit characters
removing rows whose Price values are less than 10
removing rows whose country values are not equal to “United Kingdom”, “Italy”, “France”, “Germany”, “Norway”, “Finland”, “Austria”, “Belgium”, “European Community”, “Cyprus”, “Greece”, “Iceland”, “Malta”, “Netherlands”, “Portugal”, “Spain”, “Sweden”, or “Switzerland”.
removing rows whose quantity values are negative.
trimming the description using string.strip function
Step 2 (30 points) Find the frequent itemsets with min_support = 0.01
Step 3 (35 points) Find the association rules with confidence greater than 10%. Among them, which rule(s) has the highest value of lift?
Deliverables
Submit a zip file containing your Python code and a “report.pdf” answering the question asked in step 3.

Create 2 Simple web / screen scraper programs (preferably using 2 different webs

Create 2 Simple web / screen scraper programs (preferably using 2 different websites or try to extract 2 different pieces of information from 1 website). Be sure to submit your files as python files (.py) AND include Screenshots showing that they run (showing your sample output) Your programs need to display some meaningful information to receive full points (for example, just displaying an entire website or just displaying random symbols / tags / parts or words will result in loss of points) You can download a copy on your system by going to python.org. only have python version 3 installed, so if you find any notes or tips online, make sure you are using that version. I would suggest using version 3 if you download (any version of 3 should work fine).
Be sure to use the Python – GUI IDLE program to use the interactive window. You can create a python script by using file–> new script… and to run, use run -> run module. Several resources are posted in the week 3 folder, but feel free to use other sources if it’s helpful. If you end up following a particular tutorial, be sure to cite the source and modify it a bit to make it your own program. Feel free to search YouTube or other places online. You are free to use additional libraries if you are comfortable installing them (or use my example that is library free).
Alternatively, there are also online Python IDEs like replit.com that do not require installation and will automatically install libraries if you are having a hard time with your system.
For this week:
Create 2 Simple Web / Screen Scraper programs (preferably using 2 different websites or try to extract 2 different pieces of information from 1 website) due You can submit your (.py) files in the “Labs and Project” Tab. I am allowing a bit more time for this assignment, but it’s better to start early as issues may come up, and it will start to overlap with next week’s assignment. Also submit screenshots of your script’s output to show what it is doing.
There are other simple examples online you can search for if you don’t like the one posted. Many are using other libraries that you may need to install and setup. You can try to extract information from websites like uszip.com or simple news sites. My attached script is not using any libraries for simplicity, but it’s not efficient. You might want to use that sample file as an example.

I need to complete a Python assignment in which the reinforcement learning algor

I need to complete a Python assignment in which the reinforcement learning algorithm (Q-learning) needs to be implemented to let a robot how to navigate in a maze. The ROS simulation is not required. Follow each step listed in the attached “Project” document to complete the assignment. I will require that you produce the simulation results on a Word document. I also will require the python code used. Please make sure that you look at the rubric and that every step is covered.

Write your own Python code examples that demonstrate each of the following. Do n

Write your own Python code examples that demonstrate each of the following. Do not copy examples from the book or any other source. Try to be creative with your examples to demonstrate that you invented them yourself.
Example 1: Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter.
Example 2: Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.
Example 3: Construct a function with a local variable. Show what happens when you try to use that variable outside the function. Explain the results.
Example 4: Construct a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.
Example 5: Show what happens when a variable defined outside a function has the same name as a local variable inside a function. Explain what happens to the value of each variable as the program runs.
The code and its output must be explained technically whenever asked. The explanation can be provided before or after the code, or in the form of code comments within the code. For any descriptive type question, Your answer must be at least 150 words.
End your discussion post with one question related to programming fundamentals learned in this unit from which your colleagues can formulate a response or generate further discussion. Remember to post your initial response as early as possible, preferably by Sunday evening, to allow time for you and your classmates to have a discussion.

Write your own Python code examples that demonstrate each of the following. Do n

Write your own Python code examples that demonstrate each of the following. Do not copy examples from the book or any other source. Try to be creative with your examples to demonstrate that you invented them yourself.
Example 1: Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter.
Example 2: Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.
Example 3: Construct a function with a local variable. Show what happens when you try to use that variable outside the function. Explain the results.
Example 4: Construct a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.
Example 5: Show what happens when a variable defined outside a function has the same name as a local variable inside a function. Explain what happens to the value of each variable as the program runs.
The code and its output must be explained technically whenever asked. The explanation can be provided before or after the code, or in the form of code comments within the code. For any descriptive type question, Your answer must be at least 150 words.
End your discussion post with one question related to programming fundamentals learned in this unit from which your colleagues can formulate a response or generate further discussion. Remember to post your initial response as early as possible, preferably by Sunday evening, to allow time for you and your classmates to have a discussion.

Write a code where you provide the names and working hours of 5 workers as TWO s

Write a code where you provide the names and working hours of 5 workers as TWO separate lists as Workers=[Ahmad, Ali, Muhammad, Salih, Waleed], Worker_hours=[20, 45, 32, 38, 50]. The hourly rate is fixed to $2.75. For these workers you have to write a report saying:
For [worker] , who worked for [hours], including [over time] Hours of overtime, for an hourly rate of: [hourly rate] and overtime rate: [overtime rate], his gross pay is: [gross pay].
Note that gross pay is calculated as: Hours * Hourly Rate
An important point is that pay above 40 will get an hourly wage 1.5 time the regular wage
Hint: use len(list([list_name]) to find the number of elements in the list and then make use of while statement. Also note that, in order you refer a particular list element we use listname[index], e.g. in Workers list, Ahmad is at index 0, therefore to refer to Ahmad or the first element we use Workers[0].

Write a code where you provide the names and working hours of 5 workers as TWO s

Write a code where you provide the names and working hours of 5 workers as TWO separate lists as Workers=[Ahmad, Ali, Muhammad, Salih, Waleed], Worker_hours=[20, 45, 32, 38, 50]. The hourly rate is fixed to $2.75. For these workers you have to write a report saying:
For [worker] , who worked for [hours], including [over time] Hours of overtime, for an hourly rate of: [hourly rate] and overtime rate: [overtime rate], his gross pay is: [gross pay].
Note that gross pay is calculated as: Hours * Hourly Rate
An important point is that pay above 40 will get an hourly wage 1.5 time the regular wage
Hint: use len(list([list_name]) to find the number of elements in the list and then make use of while statement. Also note that, in order you refer a particular list element we use listname[index], e.g. in Workers list, Ahmad is at index 0, therefore to refer to Ahmad or the first element we use Workers[0].

Instructions: In one file, write programs for the tasks below and upload the fil

Instructions: In one file, write programs for the tasks below and upload the file (.py) to Blackboard. In the top comments section of the file, please include your name, the date, and the assignment number. While you don’t have to add comments for every line of code, please include comments to tell a reader what you are doing. Commenting your code also suggests to me that you know what you are doing.
While there is no one way to do things, your code should only use commands and methods from class. I do not want you using other commands that you got from the internet,
Also use the #%% command to divide each answer into its own cell. Note also include #%% after the last line of code in the program. the assignment questions in the word file ” assignment 2″, please the codes in the power point attached and not from any other source.

Instructions: In one file, write programs for the tasks below and upload the fil

Instructions: In one file, write programs for the tasks below and upload the file (.py) to Blackboard. In the top comments section of the file, please include your name, the date, and the assignment number. While you don’t have to add comments for every line of code, please include comments to tell a reader what you are doing. Commenting your code also suggests to me that you know what you are doing.
While there is no one way to do things, your code should only use commands and methods from class. I do not want you using other commands that you got from the internet,
Also use the #%% command to divide each answer into its own cell. Note also include #%% after the last line of code in the program. the assignment questions in the word file ” assignment 2″, please the codes in the power point attached and not from any other source.

Instructions: In one file, write programs for the tasks below and upload the fil

Instructions: In one file, write programs for the tasks below and upload the file (.py) to Blackboard. In the top comments section of the file, please include your name, the date, and the assignment number. While you don’t have to add comments for every line of code, please include comments to tell a reader what you are doing. Commenting your code also suggests to me that you know what you are doing.
While there is no one way to do things, your code should only use commands and methods from class. I do not want you using other commands that you got from the internet,
Also use the #%% command to divide each answer into its own cell. Note also include #%% after the last line of code in the program. the assignment questions in the word file ” assignment 2″, please the codes in the power point attached and not from any other source.