Interesting: It was from the examples folder in examples folder from 0.13.1.
Current versions appear to have the new API in the example. All set now.
Thanks.
From: Andreas Mueller [mailto:[email protected]]
Sent: Monday, April 29, 2013 6:09 AM
To: [email protected]
Subject: Re: [Scikit-learn-general] plot_affinity_propagation.py needs an
update?
I can't find the code you quoted.
Which example is this.
There is this affinity propagation example:
http://scikit-learn.org/stable/auto_examples/cluster/plot_affinity_propagati
on.html#example-cluster-plot-affinity-propagation-py
which doesn't contain the lines.
On 04/28/2013 12:05 AM, ap wrote:
Using 0.13.1 example code I found the following difference in the Affinity
call, and I am proposing a possible fix/change for that example program
below.
WAS: (throws warnings)
af = AffinityPropagation().fit(S, p)
Traceback (most recent call last):
File "E:\p\cr\rho\plot_affinity_propagation.py", line 41, in <module>
af = AffinityPropagation().fit(S, p)
TypeError: fit() takes exactly 2 arguments (3 given
NOW: (SHOULD BE)
af = AffinityPropagation(affinity='precomputed',preference=p).fit(S)
----------------------------------------------------------------------------
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Scikit-learn-general mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general