what filter to choose in weka for an id that consist of numbers and alphabets - filter

I'm using weka for image classification, and in my CSV file, there are two columns one is class which is a numeric type and the other one is the ID. however, my id consists of numbers and alphabets. what I have to do now is to change the type of ID, but to what?

Related

Calculated Field Expression, sum of field with specific values

I have a Feature field that has 4 different values (Features 1-4). There's also a use case field that has a set of values (usecase 1-4) and another set of values (usecase 5-8).
I would like to find the sum of (usecase1-4), that also contains feature1-2 from the Feature field. Same with (usecase5-8) that contains feature3-4.
screenshot for a visual:
enter image description here
How would I accomplish this?
I tried sumOver(sum(count, [Feature], [usecase])) but that gave me the same numbers of the total column. Am I thinking about the partitions wrong?

Calculated fields counts aggregated by different time variables on quicksight

I have two event columns on a table with dates. I need to count the number of events in each column create a calculated field that is a ratio between them and create a filter by a period on the interface.
That is easy if I have separated plots as I use the date field for filtering.
separated plots
The problem occurs when I need to create a calculated field that is a ratio between them. I can't have two variables and two filters. Is that a way to solve this only using quicksigth capabilities? It is not possible to assess the filtered data to use as input for a calculated field ?

Google Sheets - Removing the used items from drop-down lists

In Google Sheets I have a column containing a list of available Serial Numbers (say, column A).
Somewhere else (say, column B) a user must choose the serial number used among those listed in column A; I use Data Validation with a drop-down list in order to prevent the user to use a non-existent serial number.
My goal is to allow the user only choose the remaining available serial numbers, by removing from the drop-down list all the serial numbers already used.
By using the FILTER function, combined with MATCH and ISNA, I am able to create a column of available serial numbers (say, column C). The function used is:
=FILTER(A2:A;ISNA(MATCH(A2:A;B2:B;0))).
Then I moved the Data Validation list of column B (where the user must select the serial number used) from column A (all serial numbers) to column C (filtered serial numbers). I also added the "Reject input" in the Data Validation form, so I can allow the user only to enter a value listed in column C.
It works, but all the previously entered serial numbers on column B have a small red triangle showing that data is not valid. Of course, this happens because all entered values are removed from the data validation list.
I could simply ignore the red triangles, but I don't like this solution that much, because it always looks like there's an error on the sheet, and when we will have many data inside it would be difficult to distinguish this problem from any others.
Is there a different way to solve?
Thanks
with formula only you can use:
=TRANSPOSE(FILTER(A2:A, NOT(COUNTIF(C3:C4, A2:A)), A2:A<>""))
=TRANSPOSE(FILTER(A2:A, NOT(COUNTIF({C2; C4}, A2:A)), A2:A<>""))
=TRANSPOSE(FILTER(A2:A, NOT(COUNTIF(C2:C3, A2:A)), A2:A<>""))
then hide columns and use validation:
where this is the result:
demo sheet
update:
1st fx:
=TRANSPOSE(FILTER(A2:A, NOT(COUNTIF(C3:C4, A2:A)), A2:A<>""))
2nd and every next fx:
=TRANSPOSE(FILTER(A$2:A, NOT(COUNTIF({
INDIRECT("C2:C"&ROW()-1); INDIRECT("C"&ROW()+1&":C")}, A$2:A)), A$2:A<>""))

Googlesheet extract specific text from cell, based on range

I've got a problem, I'm not sure can be done with formulas.
I can do it with some script writing, but would prefer the sheet be "Live" and use formulas.
I have a list of products, and within the name of the product is the type of product it is (T-shirt, Sweatshirt etc)
But it's not always in the same place, I have a list of Types, and what I want to do is create a formula that will populate pull the type from the name if it finds it in my List
(hope that makes sense)
https://docs.google.com/spreadsheets/d/1DXmEbzJS02oMlGYrKI6XsUPuyCI9XqoRo2_4GZXIZN4/edit?usp=sharing
This is a sample of the data, I've got Product Titles in Column A, The Expected output in column B, and the list of types in column F.
I've tried using a combination of find and mid commands, but can't figure out how to get it to compare with every type in my list.
Assuming A2:A contains product names, F2:F contains a list of product types, and we want C2:C to contain product types extracted from product names in A2:A, then it can be achieved with the following formula in cell C2:
=ARRAYFORMULA(IFERROR(REGEXEXTRACT(A2:A,JOIN("|",
QUERY({F$2:F,ARRAYFORMULA(LEN(F$2:F))},
"select Col1 where Col1 is not null order by Col2 desc")))))
Explanation
REGEXEXTRACT, extracts a substring that matches a regular expression. x|y matches x or y, preferring x. We construct a regular expression containing all product types from the list (F2:F), delimited by | using JOIN.
The list of product types is first sorted descending by string length, so that REGEXMATCH will try to match the longest types first. It doesn't matter in the particular example sheet you provided, but would be necessary if you had a type that is a substring of another type, e.g. Shirt and Polo Shirt.

Comparison of alphanumeric data in two columns, Excel VBA

I got a simple sheet in which I got some columns of data representing certain grid-line i.e. A-25, B-35, C-41 etc and I got another column in which the data is like B-25.5, C-26.5 etc. I want to compare the both columns and know for each item that which item is bigger or smaller (grid-line sense) than the other. e.g. C-26.5 will surely be lesser than C-41. I need a simple algorithm or code to achieve the same.

Resources