Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
subset
- Page 1
OpenAI o3 vs Anthropic Claude 4 for Text Classification & Summarization
Programming
Computer Science
1 Week Ago
by usmanmalik57
… rows where 'airline_sentiment' or 'text' are NaN dataset = dataset.dropna(
subset
=['airline_sentiment', 'text']) # Remove rows where 'airline_sentiment' or 'text' are empty…
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
2 Months Ago
by usmanmalik57
… rows where 'airline_sentiment' or 'text' are NaN dataset = dataset.dropna(
subset
=['airline_sentiment', 'text']) # Remove rows where 'airline_sentiment' or 'text' are…, predictions) print(f"Hamming Loss: {hamming}") # Calculate
Subset
Accuracy (Exact Match Ratio) subset_accuracy = accuracy_score(targets, predictions) print(f…
Re: Convert jQuery to native Javascript
Programming
Web Development
1 Month Ago
by Dani
That tool only covers a very tiny
subset
of jQuery functionality, so wouldn't be useful since my intent is to be able to ditch the library. I guess I'll just [be here waiting for jQuery 4](https://www.daniweb.com/programming/web-development/threads/543260/any-jquery-4-users)!
Re: subset sum task
Programming
Software Development
15 Years Ago
by apegram
… getting some duplicated subsets and needed to only add a
subset
of numbers once. It was ugly. My final approach, and… 2 1 2 // add 2 to
subset
of 1, add as new
subset
3 // add
subset
of 3 1 3 // add 3 to…
subset
of 1, add as new
subset
2 3 // add…
Subset of Hashtable...
Programming
Software Development
19 Years Ago
by chiwawa10
greetings, I would like to build a
subset
from a Hashtable. The
subset
is a Hashtable too. How could I do it? Is there any API out there? Any advise or guideline are appreciated, thank you! :rolleyes:
Re: Subset of Hashtable...
Programming
Software Development
19 Years Ago
by jwenting
… specifics of your own data and how to extract the
subset
you want. P.S. Don't use Hashtable unless you…
Re: Subset of Hashtable...
Programming
Software Development
19 Years Ago
by chiwawa10
Thank you for advising... That address my problem very well :p I will try to implement my own methods. However, my main concern is performance. Will it be too costly if I scan the value of each key in the hashtable, then return the
subset
? :cheesy:
Re: subset sum task
Programming
Software Development
15 Years Ago
by checho
…. Write a program that checks if the sum of some
subset
of them is 0. * Example: 3, -2, 1, 1, 8…) * numbers[j]; } if (sum == 0) { counter++; } } Console.WriteLine(counter + "
Subset
sums = 0"); } [/CODE]
Re: subset sum
Programming
Software Development
15 Years Ago
by jim_thomas
… << bit); return (solution+a); } //the int returned by
subset
sum has the bit values set to the solution // if… current place in our array, a_index. the solution to the
subset
sum problem is: 1) include the current item in our…
Re: subset sum
Programming
Software Development
14 Years Ago
by Bajeed
Here is the solution for the Maximum sum of a
subset
in an array [url]http://bajeed.blogspot.com/2010/07/program-to-find-maximum-sum-of-
subset
.html[/url]
subset sum
Programming
Software Development
20 Years Ago
by geegoo!
…. of subsets is 2^20) 3) the no . of each
subset
is found by combinations . thats all ..please if you have…
subset sum task
Programming
Software Development
15 Years Ago
by checho
hi i have the next task to solve. [B] * We are given 5 integer numbers. Write a program that checks if the sum of some
subset
of them is 0. * Example: 3, -2, 1, 1, 8 1+1-2=0.[/B] do u have any other ideas then writing all the 31 if statements?
Re: subset sum task
Programming
Software Development
15 Years Ago
by Geekitygeek
You might wanna check [URL="http://en.wikipedia.org/wiki/Subset_sum_problem"]this article[/URL]. The
subset
sum problem is used to demonstrate the NP-Complete complexity class. Also, hats off to apegram for simultaneously presenting a well written method and demonstrating the best way to right one :)
Subset string
Programming
Software Development
13 Years Ago
by znerihc
…++ that lets you know if the guess word is a
subset
of the scrambled word. Of course, the number of characters…
Re: Subset string
Programming
Software Development
13 Years Ago
by ravenous
You could store a frequency count of all the letters in the word/scrambled word. Then, make a frequency count of the guess and subtract the guess frequency counts from the stored one. If any of the resulting subtractions is negative, then your guess cannot be a
subset
of the stored word.
Subset using backtracking
Programming
Software Development
12 Years Ago
by untitled69
… ask for more info's. I started with a basic
subset
program using backtracking: #include<iostream.h> #include<…
What will be the time complexity and the size of subset for the following
Programming
Computer Science
9 Years Ago
by claptus
…7, 45, 16, 9} is there a non-empty
subset
whose sum is zero? Yes, because k = 5. Output…, -6, 7, -22} is there a non-empty
subset
whose sum is zero? No, because k = null. Output…7, 16, -9, 25} is there a non-empty
subset
whose sum is zero? Yes, because k = 4. Output…17, 1, 18, 5} is there a non-empty
subset
whose sum is zero? Yes because k = 9. Output…
Re: To find the maximum subset sum in an array.
Programming
Software Development
17 Years Ago
by hammerhead
[QUOTE=dilip.mathews;230318]I dont want the maximum sum . I want the
subset
with maximum sum. {5,-2,10,-4} Here the
subset
with maximum sum is {[COLOR=blue]5,-2,10[/COLOR],-4}. The program should output {5,-2,10} I think u got my point.[/QUOTE] I dont understand, sum of the
subset
[5,10] is clearly greater than that of [5,-2,10]
Re: To find the maximum subset sum in an array.
Programming
Software Development
19 Years Ago
by dilip.mathews
I dont want the maximum sum . I want the
subset
with maximum sum. {5,-2,10,-4} Here the
subset
with maximum sum is {[COLOR=blue]5,-2,10[/COLOR],-4}. The program should output {5,-2,10} I think u got my point.
Re: do random selection of subset from data table
Programming
Web Development
12 Years Ago
by showman13
… has no bearing on making a random selection from the
subset
that would be retrieved in the query I simply need… to make a random selection from the
subset
, which is a list of ref_ids that have referred a…
To find the maximum subset sum in an array.
Programming
Software Development
19 Years Ago
by dilip.mathews
Hi all, Can anybody help me with a an algorithm to find the maximum
subset
sum in an array. It would be better if the solution is of O(n). [example: {5,-2,10,-4} the maximum is 5 + (-2) + 10 => 13].
Re: To find the maximum subset sum in an array.
Programming
Software Development
19 Years Ago
by Rashakil Fol
Then you mean the maximum sublist sum, not
subset
. First, you can convert the list into a list of …
Re: To find the maximum subset sum in an array.
Programming
Software Development
17 Years Ago
by omko
… indexes ( indices ) are the first and end of the maximum
subset
does that make sense ?
Re: To find the maximum subset sum in an array.
Programming
Software Development
17 Years Ago
by invisal
Sorry, but I still don't understand what is "
subset
with maximum sum". Can anyone explain or give me more examples?
Re: To find the maximum subset sum in an array.
Programming
Software Development
17 Years Ago
by invisal
How about this array [2, 4, 1, 5, 6] so the maximun of
subset
sum is 2 + 4 + 1 + 5 + 6 = 17?
How To Get a Subset of Multidimensional Array
Programming
Web Development
16 Years Ago
by KoaMali
… associative array for a specific Link value, then return a
subset
of all of the arrays that contain the same Category…
next subset algorithm
Programming
Computer Science
14 Years Ago
by Wootens
What will the next string be when produced by the next
subset
algorithm? 110111 and also this one too 001001 I'm really confused and any explanation would be great. Thanks in advance!
Re: next subset algorithm
Programming
Computer Science
14 Years Ago
by Momerath
You don't give nearly enough information as there are a lot of ways to generate the "next
subset
".
String subset using Recursion ?
Programming
Software Development
14 Years Ago
by coderN
… i cant not use the same algorithm. ..lets say % java
SubSet
acd {,a,c,d } which will print {a} {c} {d…
Problem in using vector for generating subset of a string.
Programming
Software Development
13 Years Ago
by IndianaRonaldo
…[i].size();j++) { SF.push_back(Sub[i][j]); //SF final
subset
of string input.... } } }[/CODE] The above is the code for…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC