Posts

python - sklearn - Cross validation with multiple scores -

मैं recall , सटीक और विभिन्न क्लासिफायर के लिए एक क्रॉस सत्यापन टेस्ट के> एफ-मापन । scikit-learn के साथ आता है लेकिन दुर्भाग्य से इस तरह की विधि कई मान वापस नहीं करती है। मैं तीन बार cross_val_score लेकिन वह कुशल नहीं है क्या कोई बेहतर समाधान है? अब तक मैंने इस फ़ंक्शन को लिखा है: sklearn आयात मीट्रिक डीआर अर्थ माध्यको से (एक्स, वाई, सीएलएफ, एसपीएफ): सेमी = एनपी। शून्य (एनएपी.युनीक (वाई)) ** 2) मैं, (ट्रेन, परीक्षा) एन्यूमरेट (स्फ़ी) में: clf.fit (एक्स [ट्रेन], y [ट्रेन]) y_pred = clf.predict (X [टेस्ट]) सेमी + = मेट्रिक्स.संस्थापन_मैट्रिक्स (वाई [टेस्ट], y_pred)। फ्लेटन () रिटर्न कंप्यूट_मेजर्स (* सेमी / स्कफ.एन_ फोल्ड्स) डीईफ़ कंप्यूट_आमेचर (टीपी, एफपी, एफएन, टीएन): "" "प्रभावशीलता उपाय "विशिष्टता = टीएन / (टीएन + एफपी) संवेदनशीलता = टीपी / (टीपी + एफएन) फिमेंजर = 2 * (विशिष्टता * संवेदनशीलता) / (विशिष्टता + संवेदनशीलता) रिटर्न सेंसिटिविटी, विशिष्टता, फ़ाइमोर यह मूल रूप से भ्रम मैट्रिक्स मानों को बताता है और एक बार जब आप गलत पॉजिटिव , झूठ...

in jsp by using JSTL , how i can get inserted id -

When I execute the query, I can get the id by call mysql_insert_id () function for this query ID name ------------- 1 jack2s Sarah > & lt; Sql: updated data source = "$ {snapshot}" var = "results" & gt; Include user (name) values ​​(INSERT); & Lt; Sql: Ultimate value = "$ {name}" /> & Lt; / SQL: Update & gt; If I execute this query, then I hope to have ID number 3. But how do I get it? You can use the updated update and query in sql: Transaction Tags: & lt; Sql: transaction data source = "$ {snapshot}" & gt; & Lt; Sql: update var = "results" & gt; Include user (name) values ​​(INSERT); & Lt; Sql: Ultimate value = "$ {name}" /> & Lt; / SQL: Update & gt; & Lt; Sql: query var = "nextIdTable" & gt; Select LastId as LAST_INSERT_ID () & lt; / Sql: Query & gt; & Lt; / SQL: Transactions & gt; Value is: $ {nextIdTable.rows [...

html - How can I get my site to look the same when it is restored down? -

When my page gets maximized, but my site looks fine, how do I fix it? Basically the box on my site gets distorted when I restore it. I am new to website design my coding is below: Boxed {position: absolute; Left: 500 pounds; Correct: 180px; Border: 4px solid green; Font size: 2em; Text align: center; } Suggestions? box The image is covered in the box, and You can consider fixing the width and height using the image blocked by the boundary by using px or something like this, just make sure that it is not the overflow needed. For example, add it to the style of your box width: 500px; Height: auto; / * Auto fix for height * / white spot: pre-rap / * line-break * / display: inline-block; And it will probably improve your website.

windows - Batch file for printing using shared printer in LAN -

I have a report and file that I want to print using the batch file "C: \ Program Files \ Adobe \ Reader 9.0 \ Reader \ "/ t will print it on the default printer What do I want to print the file using the shared printer? how can I do this.? Any help check - emulates this right click -> Print and print the default printer (

python - What use instead of global variables in scipy weave? -

I am following the motility of some particles in the Forcefield described by many parameters . If I do in C or Fortune, then I will define these parameters as Global Variable (this is the most convenient). Here, when I am using spit weaving, I have to give them as a logic of the function. Which I do not like because every time I add or remove a parameter, many functions have to be edited in the title Also, due to passing many arguments the function may be slow ( This performance is a severe tight loop). For example, the following code parameters k, x_surf, C6, C12, CQ, Zeta, E0 and T1, beta many dependent tasks Repeated in the header of . Inline double forex (double x, double queue, double k, double x_serve, double c6, double c12, double cq, double zeta, double e) {...} inline Double step, double, double, double, double, double, double, double, double, double, double, double, double, double, c, double, c12, double cQ, double zeta, double e, double and x, double and v, d...

extending the life of temporary objects in C++ -

I'm reading this: // Example 3 Derivative Factory () ; // A derivative object vs. zero () {Census base & amp; B = Factory (); // Call Derivative: generated here // ... use b ...} // calls received: ~ Generally generated here - Base no: Base + virtual sending! And I understand the first and second examples, but I do not consider the third example. False, what is loyalty / references and what is the 'viral dispatch' example would be good. If you write the code written below: zero ) {Base * b = new derivative; // Call Derivative: generated here // ... use b ... delete b; } Because B is base * , even if the base destroyer was virtual, because virtual dispatch will be called derivative because the The object type indicated by the base indicator is derived. Instead of void g () {derived * d = new derived; // Call Derivative :: Here generated // ... Use D ... Delete D; } Regardless of whether a Base Distribute is virtual or not, a derivative dis...

appcelerator mobile - Open pdf from resource folder in Titanium -

itemprop = "text"> In Titanium I want to open a PDF file that is stored in the resource folder, the onclick event should be opened on Adobe or any client You can open PDF for Android and You can use the webview for the iPhone. var strFileName = 'test.pdf'; Var f = Ti.Filesystem.getFile (Ti.Filesystem.resourcesDirectory, strFileName); Ti.Android.currentActivity.startActivity (Ti.Android.createIntent ({action: Ti.Android.ACTION_VIEW, Type: 'Application / PDF', data: f.getNativePath ()});