Sunday, October 22, 2023

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

I am only retrieving files from Coursebank's SPARTA's archived course. It is bit interesting that 4.6 Exit Assessment is locked. After years, I can't remember the assessment question too. I am sorry for that.

Anyways, here are the snapshots of my Jupyter notebook.

Sa mga nahihirapan po sa SP901: Data Science and Machine Learning Using Python check nyo po itong libro na ito, andyan po ung mga sinasabi ni teacher.. medyo verbatim 


https://www.oreilly.com/.../introduction.../9781449369880/ 

Introduction to Machine Learning with Python

by Andreas C. Müller, Sarah Guido


Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | Week 4: Representing Data and Engineering Features

Happy Learning SPARTANs! 

Saturday, October 21, 2023

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Imagine you're teaching a computer to do cool things.. like categorising ;) So what is the difference of Supervised and Unsupervised Machine Learning? 


Supervised Machine Learning:

Think of this like a teacher guiding a student. In supervised learning, we give the computer a bunch of data and also tell it what the correct answers should be. It's like having a teacher's answer key for a test. The computer then learns from this data and uses it to make predictions or decisions.


For example, if we want the computer to recognize cats and dogs in pictures, we'd show it lots of images of cats and dogs and tell it which is which. The computer learns to spot the differences, like pointy ears for dogs and whiskers for cats. This way, it can make predictions when it sees new pictures, like telling us if it's a cat or a dog.


Unsupervised Machine Learning:

Now, unsupervised learning is a bit different. Here, it's like giving the computer a bunch of stuff and letting it figure things out on its own. No teacher's answer key this time. The computer's job is to find patterns, group similar things together, or discover hidden structures in the data.


For example, imagine we have a bunch of customer data from an online store. In unsupervised learning, the computer might notice that some customers tend to buy similar items, and it groups those customers together. This can help the store recommend products to customers based on what others with similar tastes bought.


So for the Week 3, are you ready for Unsupervised Learning? Wink-wink! 


Again, I posted my Jupyter Notebook for a reason. But if you really need my notebook, you can send me a message on our Facebook page :) 



3.3.1 Unsupervised Learning

Guidelines:
* Using the IRIS dataset, create the following algorithms:
     - Kmeans
     - DBSCAN
     - Hierarchical

* After that, compare the results using ARI and Silhouette Score 

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning
Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 3.3.1 Unsupervised Learning








Friday, October 20, 2023

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 2.7.1 Supervised Machine Learning

Did you know that SP901 was released before SP202, introducing me to the world of Python programming? My first experience with this computer language left me feeling like a fish out of water, struggling to communicate with the machine, and the machine with me. (Ganti-ganti lang! Haha) 

The journey into Python was demanding, somewhat painful, and at times, I found myself questioning why I was putting myself through it. But without further ado, let me share with you the snapshots of the weekly assignments for this course.

I made it in jpg form for you to type in your own Jupyter Notebook, by taking the time to type out our code in our Jupyter Notebook, we're not just copying and pasting; we're building a deeper knowledge of Python and the exciting world of supervised machine learning.


2.7.1 Supervised Machine Learning

Guidelines:
Using the the Breast Cancer dataset, perform the following techniques for binary classification:
- Logistics Regression
- RF
- SVM

Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 2.7.1 Supervised Machine Learning
Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 2.7.1 Supervised Machine Learning
Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 2.7.1 Supervised Machine Learning
Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 2.7.1 Supervised Machine Learning
Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 2.7.1 Supervised Machine Learning
Project SPARTA PH's SP901: Data Science and Machine Learning Using Python | 2.7.1 Supervised Machine Learning

For Improvement: Utilize graphs and charts to provide a more comprehensive models than relying only on the accuracy of trainings and tests. 

Saturday, October 7, 2023

Oras na ba talaga ni Kuya?

We have been aware of Kuya Laleng's condition since November 2018. We are aware na nakapila na sya for operation but due to COVID na-halt ang mga operation sa heart center (if I remember it right). And 2022 November may magandang balita ang kanyang may bahay na di na muna sya isasalang for operation. 

Magandang Balita


September 18, 2023, I am packing our luggages for our upcoming trip when I received a message from Ate Sol, sinugod sa hospital ang Kuya Laleng due to severe backpain. Immediately I video called Ate Sol. 8:38pm Kuya Laleng already asked for a pain reliever which is very unusual sa aming magkakapatid. We have high tolerance of pain. So alam na namin na talagang nasasaktan sya.


We called Ate Abigail, as always, our prayer warriors. Asking for prayers. Ate Abigail and Nika hanged up 2AM and 2:34AM of September 19 I received a message from Ate Sol “Wala na si Kuya”. 


I am shocked. No tears left my eyes. 11:47AM I called Hannah(bunso nila Kuya), wala akong nasabi, iyak lang ako ng iyak. Parang gripo yung mata kong walang tigil ang tulo ng luha. May tanong ako, “Bakit ang unfair naman po? 17 lang si Hannah. 17 years is not enough to spend time with her father.” 



Then nasundan yun ng iba pang mga questions…

  • If we extended our family fasting ay madadagdagan ba ang buhay ni Kuya?
  • If we continuously pray and pleaded for his condition na pagalingin syang tuluyan ay mapapagbigyan ba kami? 
  • Kung nagkaron ba siya ng sapat na pahinga at sumunod sa bawal ng doctor ay magkakita pa ba kami? 
  • If he didn’t push his Cebu trip okay pa kaya siya? 
  • Talaga bang hanggang dun na lang si Kuya?


September 20, sa eroplano palang nagpipigil na ako umiyak. I arrived at the wake. I can’t fathom why my reaction is to cry… no wailed! I wailed. It seems unreal. Unacceptable. I let my repressed grief flow. But then my composed father hugged me and sabi nya “Wala na tayong magagawa”. 


Lalong masakit pero kailangan ko tumigil umiyak. Tama wala na kaming magagawa pero the question na bakit ang aga mawala ni Kuya still lingers. 


Pero... ang hatol NIYA ay matuwid. Sino ako para magtanong? 


Ngayon, pare-parehas kaming kailangan mag-move on magkakapatid. Lagi kong inaalala ang sabi ni Ate Sol at Kuya Ric, wala ng sakit, wala ng pagod, wala ng problema si Kuya Laleng. On that, ok na ako. Mas okay na siya dun. Mas maginhawa si Kuya dun. 


Don’t worry Kuya Laleng, ipagpapatuloy ko pang-aasar kila Kuya Ric and Ate Sol! Para may spice ang buhay namin dito. I will move on with your memories ng pagpalo mo sa akin at paglinis ng mga langib sa sugat ko. Huhuhu!


Our Last Family Photo (w/o Nanay) 


Get this gadget at facebook popup like box