Use k-means test results for training set SPSS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Use k-means test results for training set SPSS

kalyanbl
Hi,
I am working with  SPSS <https://mindmajix.com/spss-training>   (statistics)
for the first time. I used 1,000 rows of test data to run k-means cluster
tool and obtained the results. I now want to take those results and run
against a test set (another 1,000) to see how my model did.

I am not sure how to do this; any help is greatly appreciated!

Thanks



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Use k-means test results for training set SPSS

Jon Peck
When you run the first clustering, specify that the cluster centers are written to a new dataset ("Write final").  Then switch to your test dataset and run K-means again, but change the Method setting to "classify only" and set "Read initial" to the dataset from the first round.  The cluster centers after the second round will be recalculated for the test dataset, so you might want to save them in another dataset for comparison

On Thu, Mar 15, 2018 at 7:24 AM, kalyanbl <[hidden email]> wrote:
Hi,
I am working with  SPSS <https://mindmajix.com/spss-training>   (statistics)
for the first time. I used 1,000 rows of test data to run k-means cluster
tool and obtained the results. I now want to take those results and run
against a test set (another 1,000) to see how my model did.

I am not sure how to do this; any help is greatly appreciated!

Thanks



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD