Month: February 2016

Lasso Regression – Machine Learning

Machine Learning Data Analysis This is the third lesson of the fourth course of my Data Analysis and Interpretation Specialization by Wesleyan University through Coursera. If you have been following along with my work, you will know that I am interested in the relationship between urbanization and economic development and am posing the general question of whether urbanization drives economic growth? For this assignment, the goal is to run a Lasso Regression that identifies the impact of each of my explanatory variables: Urban Population, Urban Population Growth, GDP Growth, Population Growth, Employment Rate, and Energy Use per Capita in 2007. As it is a linear regression model, I am able to use a quantitative variable. Unlike the previous lesson, I can use GDP per Capita 2007 as is, without having to convert it into a categorical variable. This time, the training data set is 70% and the test data set is 30% of the original data, which means there are 100 observations in my training data set vs. 43 in my test data set. pred_train.shape = (100, 6) …

Random Forests – Machine Learning

Machine Learning Data Analysis This is the second lesson of the fourth course of my Data Analysis and Interpretation Specialization by Wesleyan University through Coursera. If you have been following along with my work, you will know that I am interested in the relationship between urbanization and economic development and am posing the general question of whether urbanization drives economic growth? For this assignment, the goal is to create a random forest that identifies the varying importance of my explanatory variables: Urban Population, Urban Population Growth, GDP Growth, Population Growth, Employment Rate, and Energy Use per Capita in 2007. For my response variable, I created a categorical variable from GDP per Capita 2007. I separated the data into two levels, where GDP per Capita 2007 is lower than 10000 is 0 or low and where GDP per Capita 2007 is higher than 10000 is 1 or high. Just as in the last assignment, when my test sample is set at 40%, the result is 58 test samples and 85 training samples out of 143 total, with …

I Forgot Hope, Is What Makes the World Beautiful

*very very rough hahaha kind of rusty. I believe that we are born pure Clean without evil But why do these things happen So I descended into the darkness In my search for the meaning Of why Fog and mist crept in Covered every path Colored everything gray Trapped within the shadows Trapped within my cave Within my own head So I saw nothing Save for darkness And I accepted it as fact   I came out tainted Forgotten my belief With no reminders of what came first But back into the light The sun shines Cleared away the shades Then I remembered Hope is what makes the world beautiful Because without hope there is no love.

Decision Trees – Machine Learning

Machine Learning Data Analysis This is the start of the fourth course of my Data Analysis and Interpretation Specialization by Wesleyan University through Coursera. If you have been following along with my work, you will know that I am interested in the relationship between urbanization and economic development and am posing the general question of whether urbanization drives economic growth? Now, as I have started working, I do not have as much time. For this course, I decided to focus solely on Python, instead of both Python and SAS as in the past. I am not abandoning SAS but I will probably take the time to learn SAS after this course ends. For this assignment, the goal is to create a decision tree that correct classifies samples according to a binary, categorical response variable. For my response variable, I created a categorical variable from GDP per Capita 2007. I separated the data into two levels, where GDP per Capita 2007 is lower than 10000 is 0 or low and where GDP per Capita 2007 is …

面對自己的過去

一個人處理事情的方式, 往往會受到過去經歷過的事影響 一個人的個性也如此 二十幾年來我沒有清楚的認知到底為什麼我會這麼沒有安全感 這麼害怕失去 讓我沒有辦法好好對待自己與我愛的人 因為我沒辦法接受空間也因為覺得會被拋棄而容易失去自信 與一位好朋友的對話讓我第一次如此清醒地了解到我的問題 1993年 當年我媽帶著我和妹妹們去上海找我爸 那時候我也已經有大概有半年到一年沒見過我爸 在好不容易全家團聚不久後 我卻又一個人被送回台灣 因為我爸有回台灣工作的可能而我也需要上小學了 所以只有五歲的我就被先送回去 雖然說我跟我姑姑一起住 我在她當老師的學校上課 可是她很忙 我的同學也一放學就回家 於是我常常就只能一個人 那時候 印象最深的就是一個人自言自語 玩石頭抓蚯蚓抓昆蟲 還有在課堂上莫明其妙大哭 說要找我媽 從那時候我就開始覺得我一直是一個人 很需要別人的愛與關懷但是又得不到 就算身邊有家人有朋友也一樣 覺得沒有人懂我需要什麼 當然我家人都很寵我而且我又是長子長孫 我也很愛也很感謝大家 但是那麼小就與爸媽分離的我 在需要與妹妹們分享注意與關懷的情況下 已經完全失去了安全感 而也深深影響到我之後與朋友的關係 國中高中到大學也如此 但我根本沒察覺 只是無謂的一直生氣和破壞建立起的自信 我現在覺悟 我也希望改 不然對事業對愛情對家人我都是不可能做到最好 也無法為身邊的人帶來快樂 那 你們的故事是什麼?