Questions tagged [method-combination]
13 questions
2
votes
1 answer
Understanding CLOS :after and primary methods
In the hunchentoot source code, there is an :after defmethod called initalize-instance.
This particular example is one of a handful of :after methods called initalize-instance throughtout the project.
My experience with CLOS taught me that a primary…

Vinn
- 1,030
- 5
- 13
2
votes
2 answers
Combinations that add up to a number - Julia lang
I'm new to Julia. Is there a way to add up elements from a list that add up to a certain value target? I have done this with Python's itertools library like in the example below but I find it extremely slow for larger datasets.
import…

Nev1111
- 1,039
- 9
- 13
2
votes
1 answer
CLOS: Method combination with arbitrary function
While reading about CLOS (in ANSI Common Lisp by Paul Graham), I noticed that there are nine functions that can be given to defmethod as its second argument:
+, and, append, list, max, min, nconc, or and progn. According to this answer, they are…

Dominik Mokriš
- 1,118
- 1
- 8
- 29
2
votes
1 answer
Difference between the 'Standard method combination' and 'Simple method combination' in CLOS
I've been studying the Common Lisp Object Protocol (CLOS) and I came across one doubt.
Does anybody what is the meaning of the 'Standard method combination' and 'Simple method combination' in CLOS?
And in the 'Simple method combination' what does it…

Paulo Tomé
- 1,910
- 3
- 18
- 27
1
vote
1 answer
Hashcat Combinator 3 word attack
I am able to do a two word combinator attack using Hashcat but when I try to add a third word list it does not work but no error is generated, only to use --help for assistance. Hashcat version is 6.25
The code I use is
hashcat -m 22000 hashfile -a…

drive
- 11
- 4
1
vote
0 answers
return all possibilities of array with limits for each element
I would like to create a function in c that takes in an argument that takes in as an argument an array where for each element it gives the range (from 0 to the number stored at the array index), I would like to return all possibilities
an example…

a_confused_student
- 349
- 1
- 3
- 13
0
votes
1 answer
Creating a Table Showing All Pair Combinations of Values in 1 Column Based on Values in a Different Column - Excel / Power BI
I have this table showing the names of the employees who worked on jobs where each job can be worked on by more than one employee:
Table 1
And I would like to create a new table comparing the names of the employees who worked on the same job so we…
0
votes
1 answer
May i use the sklearn predict_proba of a model (LogisticRegression for example) as a feature of another model (RandomForestClassifier for example)?
I am trying to improve my classification model, using statsmodel in LogisticRegression i note that some features that didn't pass in t test and don't have many influency when i use this model are very important when i change the model, for example i…

Dept
- 1
- 1
0
votes
1 answer
How to use combinat :: combn () in Rstudio?
I'm starting to use Rstudio, but I'm having trouble understanding how does the combinat :: combn () function works. (I can't really understand how to use it in the following academic exercise:
Please Use the dataset: "mtcars" and answer:
1- Build an…

AdrianF
- 1
0
votes
1 answer
Large number multiplication and division
I am trying the below mentioned code(PHP) to find probability. The calculation includes combination calculation of large numbers, using BCmaths function but not getting results. Please suggest, how this can be done.
function combin($n, $r)
{
$C =…

Indra Kundu
- 15
- 4
0
votes
1 answer
Ruby : combined if statements : why does my code always prints the same value ? (Example : progressive tax scale)
Im very bad but I need this for practical reason : why does my code always prints "2500" when 'revenus" is superior to 15000 ?
It's about progressive tax scale : we give him a revenue, and he gives us the tax we have to pay.
Scale 1 : NOT any tax…
0
votes
2 answers
generate ALL possible combinations from a number of lists
Salam,
I want to get list of combinations that represents every unique combination of all values in my list of lists. for example, have a list that containes a list of Sessions and i want a combination from each list of sessions:
My List of lists
…

Meriem
- 3
- 2
0
votes
2 answers
How could I generate a combinatorial of the lines of an array with several columns?
I want to get all possible combinations of n lines of an array.
I don't care what order they are, so it's not a permutacion.
Example:
I have an array:
[(1,2,3), (4,5,6), (7,8,9)]
Question:
I want to find all combinations of two lines:
[(1,2,3),…

Didac Alvarez
- 3
- 1