adjective: collaborative

Bringing together the AI community in Singapore – companies, startups, researchers, students, professionals – to collaborate, find research and business opportunities and talent.

Have an account? Login
New user? Register
Forgot password? Reset

AI Singapore uses a 2FA login mechanism to protect your account. Learn more about it here.


  • Have an interesting story to share?
  • Seeking for AI talent for your organization?
  • Seeking research interns for your labs?
  • Seeking an industry partner for your AI projects?
  • Are you a researcher and seeking an industry partner to do a POC or deployment of your IP/research outcomes?

Unsupervised Learning in Python  


Liyi Ang
Joined: 9 months ago
Posts: 52
November 21, 2018 8:59 pm  

Do you have any questions relating to Unsupervised Learning in Python? Leave them here!

Active Member
Joined: 7 months ago
Posts: 15
December 14, 2018 12:19 am  

The pipe documentation does not show which pipe methods are available, how do i know how to use the pipe? Should i be looking at sklearn.pipeline.Pipeline methods instead and assume all the methods there apply to sklearn.pipeline.make_pipeline too?

Also, can someone explain what's going under the hood in pipeline? The application of pipe methods onto each object inside the pipe seems inconsistent. 
From the lesson:

pipeline = make_pipeline(scaler, kmeans)


I was expecting to see a transform or a fit_transform from the scaler after fit but it's nowhere in the above code?

Similar in this answer,

how did the person replying come up with this implied workflow of the pipe? Is it documented anywhere? i am trying to understand if there is a rule of thumb to think about which methods are being applied to which class in the pipe, in what order, and if there are repetitions/restarting from an earlier class in the pipe when moving from training-->testing data

Step 0: The data are split into TRAINING data and TEST data according to the cv parameter that you specified in the GridSearchCV.

Step 1: the scaler is fitted on the TRAINING data

Step 2: the scaler transforms TRAINING data

Step 3: the models are fitted/trained using the transformed TRAINING data

Step 4: the scaler is used to transform the TEST data

Step 5: the trained models predict using the transformed TEST data

This post was modified 7 months ago by hanqi


Please Login or Register