I am using the weather.nominal dataset and NaiveBayes classifier in Weka.
I have been able to build the classifier, but now I would like to classify new records. How can I use Weka to do that?
Can someone please tell me the procedure?
Once you have trained your model, you can then supply a testing set for evaluation.
To do this, click on the 'Set...' Button next to the Supplied Test Set Radio Button as shown below:
Once a Testing Set is entered, you could Right click on the model and select 'Re-evaluate model on current test set' as shown below:
Hope this Helps!
Related
Is there a way to use a card as a slicer/filter in Power BI?
My report has two cards, "students_eligible" and "students_attended", as well as a table below them. I want to filter the table based on the cards. Meaning, if I click on the “students_eligible” card, then the table should only show the data related to “students_eligible”.
How can I accomplish this?
I’ve included an image below for context.
There is no direct method of using a Card as filter, you can't set it as one or assign a bookmark to an action on it.
What you need to is create for example a shape that sits on top of the visual, turn ofs the fill, background and boarder options, just to leave a transparent shape:
Then create two bookmarks, one with a filter for Students Eligible, and the other for Students Attended. You may have to create a third bookmark assigned to a button or other object to return to 'No filters'.
Assign the bookmark to the shape object and ensure that it is on top of the visual. So when the use no clicks on the card, it will click on the shape, which will then filter the page based on the bookmark.
You can if you wish, just use the Bookmark buttons rather than click on the card object, which may be better from a user point of view
Cards are not clickable by itself.
You can create a bookmark that holds data for the slicer value you want to choose. Also, create a button and add this bookmark to the buttons action property.
Place this button over the card and make the button completely transparent using the background and fill properties.
This provides a user experience of clicking on a card to filter
I recently developed the Slicer Button custom visual that allows one to use a card as a filter (more specifically as a "slicer"). Using a bookmark has some drawbacks and this custom visual allows a card to be used more similarly to a slicer visual.
Below if a YouTube video demonstrating how to setup and use the visual as well as a link to the GitHub repository.
Basic Setup & Use: https://www.youtube.com/watch?v=8x2QoE8M2yA&ab_channel=MattKocak
GitHub Repository: https://github.com/mattkocak/powerbi-visuals-slicerbutton
I'm happy to clarify anything that's unclear regarding the visual. I also have a blog post on the topic titled Turn your cards into slicers with the Slicer Button custom visual.
I am creating one interactive report in that, i have a column of remarks which is an apex text item..
Now i want to update the text item values in table for remarks column.
- Here is my interactive report query:
select CUST_ID,
CHEQUE_AMOUNT,
(APEX_ITEM.TEXT(REMARKS))
from PDC_STATUS_HISTORY
where STATUS in ('Pending')
AND APPROVER_BY=NVL(SYS_CONTEXT('APEX$SESSION','APP_USER'), USER);
Now i need to update the remarks column into table
You will be able to do that manually, but involves a lot of coding.
Instead of going into that direction, my advices is to (if possible for you) 'upgrade' the Interactive Report into an Interactive Grid. It looks the same and therefore your users will recognise it and feel comfortable, but now you will be able to edit (certain) values as well. That way, most of the coding comes out-of-the-box by APEX.
Interactive Grid:
Add a new page using the wizard
Choose Interactive Grid as the page/region type
Enter following query as the source
select CUST_ID,
CHEQUE_AMOUNT,
REMARKS
from PDC_STATUS_HISTORY
where STATUS in ('Pending')
AND APPROVER_BY = NVL( SYS_CONTEXT('APEX$SESSION','APP_USER'), USER);
Specify CUST_ID as the primary key and read-only
Specify CHEQUE_AMOUNT as read-only
Hope this answer is useful to you! Let me know.
How to save the new data set to use it in other applications after performing feature selection in WEKA?
Simply export it in a format such as CSV, JSON, or .arff. In the Weka Explorer, there is a button labeled "Save..." in the top right of the GUI.
I am working on logistic regression classifier of Weka API in java. I want to know How can I set Logistic regression output to instances distributions (the probability to which an instance belongs to class 1) instead of the instances predicted classes? I want to use these to build an ordered list of instances and take top 10 instances.
Any help would be greatly appreciated
I'm guessing here: what you intend to do is similar to this:
Click Preprocess Menu, Click Filter Button, Select "supervised attribute filter", select AddClassification.
Double-Click on "AddClassification"
Select "Logistic", in the config-dialog: select "Output Distribution", select "true". This will add a new column to your dataset, containing the probabilities for each instance.
If this new column will contain any meaningful data, is another matter. You didn't provide enough information, so I took the built-in "credit-g" dataset
Note that there are new columns added below the highlighted "class" column:
The data in these columns look like this:
Right now I have a stacked bar graph and a line graph on one page using apex 'create a region' functionality. I'd like to combine these to one chart. I am thinking if you pehaps create a custom xml code in order to do so, but i'm not sure if that's the right direction to go to. Any help in this regard is appreciated.
No need to fiddle with XML. Create a second series in the chart using the SQL of your second chart and set the 'Series type' attribute to 'Line'.
Check "Multiple Y-Axis" in the display settings to plot your second series with a separate set of Y values. This means the number range offered in both series can be different scales. This can rescale as you show/hide specific series, as offered in one of the Legend properties.
Here is a link to a sample application by Hilary from the APEX team, plenty of examples in there regarding what is possible:
https://apex.oracle.com/pls/apex/f?p=36648