Code Monkey home page Code Monkey logo

mgalarnyk / datasciencecoursera Goto Github PK

View Code? Open in Web Editor NEW
2.2K 122.0 2.1K 33.83 MB

Data Science Repo and blog for John Hopkins Coursera Courses. Please let me know if you have any questions.

Home Page: https://medium.com/@GalarnykMichael/blogging-through-the-data-science-specialization-john-hopkins-coursera-2ea63fb99ab5#.ckgc10iif

R 0.50% HTML 94.53% MATLAB 3.29% Python 0.27% Jupyter Notebook 1.40%
jhu-coursera data-science john-hopkins-coursera r stanford python

datasciencecoursera's People

Contributors

advayaggarwal avatar garimasingh128 avatar ghacupha avatar mas-dse-mgalarny avatar mgalarnyk avatar psikrishna avatar randerson112358 avatar sauravchaudharysc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datasciencecoursera's Issues

Why the transpose of y in the Python but not the matlab version?

s = np.power(( X.dot(theta) - np.transpose([y]) ), 2)

Matlab/Octave:

J = (1/(2*m)) *sum( (((X*theta)-y).^2))

Python :

s = np.power(( X.dot(theta) - np.transpose([y]) ), 2)
J = (1.0/(2*m)) * s.sum( axis = 0 )

They look equivalent except the python has that np.transpose([y])
Why is it needed?

BTW, My Octave version of this cost function is the same as yours.

This is probably not a bug, but it is confusing. You've done a nice job of doing the Python version. It would be an improvement to at least comment on that. I really wanted to do the assignment in NumPy, but Ng's tutorial on Matlab was so easy to follow that I just did the Octave version. Now I can compare the syntax. A Tabla Rosa!

trivial ques but imp for noobs like me!

pollutantmean <- function(directory, pollutant, id = 1:332) {

###Format number with fixed width and then append .csv to number
fileNames <- paste0(directory, '/', formatC(id, width=3, flag="0"), ".csv" )

###Reading in all files and making a large data.table
lst <- lapply(fileNames, data.table::fread)
dt <- rbindlist(lst)

if (c(pollutant) %in% names(dt)){
return(dt[, lapply(.SD, mean, na.rm = TRUE), .SDcols = pollutant][[1]])
}
}

###Example usage
pollutantmean(directory = '~/Desktop/specdata', pollutant = 'sulfate', id = 20)

**Q1: Please can you explain what have you done in highlighted portion (.SD and then .SDcols)?

Q2: Also this, .(n = .N) ??**
{--
complete <- function(directory, id = 1:332) {

###Format number with fixed width and then append .csv to number
fileNames <- paste0(directory, '/', formatC(id, width=3, flag="0"), ".csv" )

###Reading in all files and making a large data.table
lst <- lapply(fileNames, data.table::fread)
dt <- rbindlist(lst)

return(dt[complete.cases(dt), .(nobs = .N), by = ID])

}

###Example usage
complete(directory = '~/Desktop/specdata', id = 20:30)

--}

Machine Learning Week 2 Quiz 1 (Linear Regression with Multiple Variables) Stanford Coursera

Answer Explanation
α=0.3 is an effective choice of learning rate. We want gradient descent to quickly converge to the minimum, so the current setting of α seems to be good, X[WRONG]

it is wrong. The learning rate &=0.3 still looks high compared with 0.1. The right answer is or should be; Rather than use the current value of α, it'd be more promising to try a smaller value of α (say α=0.1).

Data Science Coursera Course

You have provided solutions for the course, I am really thankful for that. As I was doing the exercises , I found something worth mentioning to you. Week 2 , Question 4 ; the answer is different. Two options are correct. Please check for that. The transpose of v (1 cross 7) multiplied by w (7 cross 1) gives one number . Maybe they changed the options over time because this option was not present.
Again thanks for your work. I will see your content on YouTube too.

Explain the answer

It would be very nice to get an explanation of the answer.

Seriously i am not able to classify the problem.

Why some time it goes to classification and some time regression.

Weather Prediction

Hi,

i have recently started working on prediction. please help me on how to prediction weather by using previous data (not from ) skymate/accueweather site.

pls post any queries
[email protected]

thanks
Venkat

Outdated... Unfortunately

Unfortunately, the information in the questionnaires is outdated. The questions have already been changed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.