Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Ufo sightings in bakersfield ca

15/11/2021 Client: muhammad11 Deadline: 2 Day

Machine Learning

{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "

\n", "

Assignment 2: Data Preprocessing

\n", "
\n", "

UFO Sighting Data Exploration

\n", "
\n", "

MCIS 6283-Machine Learning

\n", "\n", "

Due date: Jan 23rd, 2019 (Wednesday)

\n", "

Total Points: 100

\n", "\n", "

Instructor: Xin Yang

\n", "\n", "\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Please put your name, student ID, date and time here (5 points)\n", "* Name:Sannidha Nallamothu\n", "* Student ID:999900278\n", "* Date:\n", "* Time:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* In this assignment, you will investigate UFO data over the last century to gain some insight.\n", "* Please use all the techniques we have learned in the class to preprocesss/clean the dataset

ufo_sightings_large.csv

. \n", "* After the dataset is preprocessed, please split the dataset into training sets and test sets\n", "* Fit KNN to the training sets. \n", "* Print the score of KNN on the test sets" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Import dataset \"ufo_sightings_large.csv\" in pandas (5 points)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2. Checking column types & Converting Column types (10 points)\n", "Take a look at the UFO dataset's column types using the dtypes attribute. Please convert the column types to the proper types.\n", "For example, the date column, which can be transformed into the datetime type. \n", "That will make our feature engineering efforts easier later on." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3. Dropping missing data (10 points)\n", "Let's remove some of the rows where certain columns have missing values. " ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 4. Extracting numbers from strings (10 points)\n", "The length_of_time column in the UFO dataset is a text field that has the number of \n", "minutes within the string. \n", "Here, you'll extract that number from that text field using regular expressions." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 5. Identifying features for standardization (10 points)\n", "In this section, you'll investigate the variance of columns in the UFO dataset to \n", "determine which features should be standardized. You can log normlize the high variance column." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 6. Encoding categorical variables (20 points)\n", "There are couple of columns in the UFO dataset that need to be encoded before they can be \n", "modeled through scikit-learn. \n", "You'll do that transformation here, using both binary and one-hot encoding methods." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 7. Text vectorization (10 points)\n", "Let's transform the desc column in the UFO dataset into tf/idf vectors, \n", "since there's likely something we can learn from this field." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 8. Selecting the ideal dataset (10 points)\n", "Let's get rid of some of the unnecessary features. " ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 9. Split the X and y using train_test_split, setting stratify = y (5 points)" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": true }, "outputs": [], "source": [ "X = ufo.drop([\"type\"],axis = 1)\n", "y = ufo[\"type\"].astype(str)\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 10. Fit knn to the training sets and print the score of knn on the test sets (5 points)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from sklearn.neighbors import KNeighborsClassifier\n", "knn = KNeighborsClassifier(n_neighbors=5)\n", "# Fit knn to the training sets\n", "knn.fit(train_X, train_y)\n", "# Print the score of knn on the test sets\n", "print(knn.score(test_X, test_y))" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.7" } }, "nbformat": 4, "nbformat_minor": 2 }

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

WRITING LAND
Financial Assignments
Engineering Solutions
Assignments Hut
Financial Hub
Essay Writing Help
Writer Writer Name Offer Chat
WRITING LAND

ONLINE

WRITING LAND

I have assisted scholars, business persons, startups, entrepreneurs, marketers, managers etc in their, pitches, presentations, market research, business plans etc.

$50 Chat With Writer
Financial Assignments

ONLINE

Financial Assignments

I have read your project details and I can provide you QUALITY WORK within your given timeline and budget.

$38 Chat With Writer
Engineering Solutions

ONLINE

Engineering Solutions

I will be delighted to work on your project. As an experienced writer, I can provide you top quality, well researched, concise and error-free work within your provided deadline at very reasonable prices.

$39 Chat With Writer
Assignments Hut

ONLINE

Assignments Hut

As per my knowledge I can assist you in writing a perfect Planning, Marketing Research, Business Pitches, Business Proposals, Business Feasibility Reports and Content within your given deadline and budget.

$40 Chat With Writer
Financial Hub

ONLINE

Financial Hub

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$32 Chat With Writer
Essay Writing Help

ONLINE

Essay Writing Help

I am an academic and research writer with having an MBA degree in business and finance. I have written many business reports on several topics and am well aware of all academic referencing styles.

$30 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

The research paper should be based on a topic discussed in the course. - Psychology 2 - Stages of interpersonal relationships - Samhsa's national registry of evidence based programs and practices - The sterling tire company's income statement - Comperio pwc - Increase superheat on txv - Org400 week 1 - Applying and removing sterile gloves - Cla-2.1 - 2 workbooks - Hp proliant microserver 2013 - Message in a bottle charles fishman - Bbc bitesize ks3 circuits - Bridal feast of beth chadruharazzeb - How does elon musk treat his workers - The book value per share of common stock is - GOVT 480 DB FORUM 4 THREAD due 9/25/2020 - University of utah catalog - Why are malcolm and donalbain suspects - Short Report on Enterprise Resource Planning (ERP) and the Applications - Earnings per share measures the net income earned - Crash time in project management - Jean-auguste-dominique ingres’s portrayal of the woman in grande odalisque ________ her body. - Streetscape - Wc fields straight up - D meter floor flatness - Year 11 biozone answers - Importance of product mix - Pvc pipe max temp - Forrest gump movie guide - Journal entry 8 - Examples of critical analysis - Assignment 2 block business letter - Kicking a ball lever - Physics 101 lab manual answers - Wilkins a zurn company material requirements planning - Information systems week 5 - Recruitment Project - What weaknesses do you see in rajiv's performance appraisals - Unit 3 hhd exam - Cockney knees up songs - Forces worksheet 2 answer key - Auditing textbook mcgraw hill pdf - Mathis and jackson human - Bill nye waves worksheet doc - Policy and Supply and Demand - Inf - Difference between functional middlemen and merchant middlemen - Up down counter circuit - Why should preschool be mandatory - Simple pleasures merry and bright face wipes - Html5 and css3 7th edition - Humane blanks hoodie - Magnet falls through copper pipe - How does lady macbeth emasculate macbeth - Tfp 20.16 - Royal bank usd to cad exchange rate - One point east of due south - Groupthink refers to the tendency of people in groups to suppress contrary opinions. - The quantum mechanical model worksheet - Vacuum impregnation in histopathology - Needs a finance & econ expert Assignment #4 - Hr discussion - Electric field mapping lab report - Does tupe apply if the service provider terminates the contract - Dimond 175 box gutter - Carinya residential windows and doors - If a coin is tossed three times - Prepare an incremental analysis for cisco - Bachelor of interior architecture unisa - Who can abnormally terminate a sprint - #6 - Case study assignment - As nzs 1801 occupational protective helmets - How well is scrum working - Deluxe corporation case study 35 - A bag of cement whose weight is fg - Three major ethical perspectives - Leadership Preference Reflection Essay- Final Draft - For anyone - Edinburgh napier university login - Look say cover write check games - Dbq document analysis chart were andrew carnegie - Finding nemo ecology questions answer key - U2 6 solve quadratics by completing the square answers - E.4 - What is the surface area of the square pyramid below - Dptr in 8051 microcontroller - Surreal sicko 2012 watch online free - What does the phrase the withered leaves of industrial enterprise - The three principles of economics include optimization, equilibrium, and empiricism. - Applied statistics for public and nonprofit administration 9th edition - 3 phase half wave diode rectifier - Www kidsastronomy com solar system htm - Plus dane housing jobs - Coulombs law lab - Sita sings the blues sparknotes - Average dividend payout ratio by industry - Current analytical architecture