How to use SVMhmm under MATLAB? - matlab

Recently I am using SVMhmm package to handle classification problem. But I found that SVMhmm package is used under Linux or Windows (under Cygwin). I am thinking to use it under MATLAB of windows system. I know that there is an SVMstruct MATLAB interface package developed by Andrea Vedaldi. But can it handel HMM problem? Could someone help me with this? Many thanks.

The web page (http://svmlight.joachims.org/svm_struct.html) for SVMhmm doesn't mention a MATLAB interface. SVMstruct won't be able to do the job if you need the SVMhmm features. Just save your data from MATLAB as text file and the load it into SVMhmm. You contact the author (see web page for address) to ask about a MATLAB interface.

Related

How to implement Tao core PHP LTI 1.3 in my tool?

I am new in LTI 1.3 - tao ,so for me this a bit hard to understand how to embed this library into my tool. I also want to understand the code workflow and structure. For LMS, I am using Moodle .
If is there any example code available for this library (https://github.com/oat-sa/lib-lti1p3-core)? My Tool based on PHP Codeigniter, if available for demo purpose, can someone please share me?
I already installed the core library using composer and configured the basic configuration such as keychain, platform details, tool details. Now in registration, I am having some problem.
If you want to access a LTI tool from Moodle, then there is an existing activity called "External Tool" - no development is required
Go to a course, switch on editing, add an activity and select external tool
The rest is explained here
https://docs.moodle.org/401/en/External_tool

How to solve the error 'Text scatter requires Text Analytics Toolbox'?

I ran a code with various functions. But the output was not complete and it showed error 'Text scatter requires Text Analytics Toolbox'. I think I have installed the complete MATLAB. Can anyone please tell me why do this error occur and how to solve it?
You don't have a "complete" MATLAB, there are multiple toolboxes available with extend the functionality of MATLAB. An overview is given here: https://mathworks.com/products.html
When you log in with your mathworks account and go to https://mathworks.com/mwaccount/ you can see the products connected to your license.
I guess if you want to use that function, you have to buy it. Alternatively you can also look around for a substitute.

Advanced charting or plotting in JavaFx?

I'm looking for a way to have more features than the basic JavaFx charts provide.
"realtime" plotting of < 50 points divided into multiple scatter series
adding custom text labels to points in scatter
drawing some lines inside the chart
maybe custom color for single some scatter points
I've already seen some people using multiple charts overlayed with transparent background. I'm not sure if this is good solution that will work with future updates to JavaFx.
Now I'm looking for suggestions. Thanks in advance!
I spent a lot of time looking for a free Java plotting library that is compatible to the Eclipse Public License (JFreeChart is not), supports SVG export (JavaFx charting does not) and let me specify plots in detail. The plotting capabilities should be similar to the features of the free scientific plotting tool Veusz that is based on python and QT. Veusz allows for example to set the orientation and size of minor ticks and everything else I ever wanted to tweek.
I used the charting features of JavaFx and tried to write a converter from JavaFx to SVG ... and stopped that after a certain amount of frustration:
https://github.com/stefaneidelloth/JavaFxNodeToSvg
Finally I decided to write javafxd3, a Java wrapper for d3.js based on the WebView and the code from gwt-d3:
https://github.com/stefaneidelloth/javafx-d3
That wrapper is applied in my main project Treez to provide some atoms for scientific plotting in Eclipse:
https://github.com/stefaneidelloth/treez
javafxd3 works well if you do not need to transfer much data between Java and JavaScript. The WebView has some performance issues/limits that can be relevant for more advanced applications. Have a look at the demo suite of javafxd3 to get an idea of that limitations and read
Performance of WebView in JavaFX
With the wrapping strategy of javafxd3 it is also possible to use plotly.js and other advanced JavaScript plotting libraries that are based on d3.js for your JavaFx application.
In the last two years there has not been much progress in JavaFx. The SceneBuilder has been abandoned by Oracle and JavaFx might be a dead end. If the charting features of JavaFx do not fit your needs and you don't want to use my JavaScript embedding work around javafxd3 ... check if JFreeChart fulfills your needs regarding licensing and features:
http://www.jfree.org/jfreechart/
If you are actually not limited to Java I would recommend Veusz/Python:
https://veusz.github.io/
or the direct usage of some JavaScript libraries:
https://d3js.org/
https://plot.ly/javascript/
Edit
I do not use Java and the wrapper any more but directly JavaScript.
I don't have an exact solution, but I had a similar need. I found that charting libraries were fairly poor in most programming languages.
However, I found that JavaScript had a huge selection of good charting (plotting) libraries.
My suggestion is to use a webview, and then display the chart in that using JavaScript and html using a library like d3 or dimple. If you don't know any CSS/html/JavaScript there might be a learning curve.

SIFT implementation in MATLAB Tutorial

I'm looking for some basic SIFT implementation in MATLAB. I need to write it from first principles. Also, I'm looking for something which explains whats going on in the program. Vedali's code and David Lowe's code just go over my head.
If you are a Matlab user, you must know this excelent site web : Matlab File Exchange
There, you will find the following project : Feature Points In Image
I think this project will fully answer to all your questions about sift.
It also posible to have a look of the SIFT implementation of the opencv library.
Then, you can find a matlab implementation by the SIFT inventor here :
D.LOW SIFT, I assume that you already know this implementation.
To understand SIFT, read this very good paper ASIFT wich explain the ASIFT algorithm. This paper start with a description of SIFT alogirthm.
You can have a look at this implementation by Yan-Tao Zheng, Ming Zhao, Shi-Yong Neo.
Also, I know that Scott Ettinger from Intel research made a Matlab implementation at some point.

Visualize Friend of a Friend (foaf) graph

I wrote a script to export twitter friends as foaf rdf description. Now I'm looking for a tool to visualize the friend networks. I tried http://foafscape.berlios.de/ but for 300+ Nodes it is really slow and does a bad job on auto formatting.
Any hints for good graph visualization tools? It's ok if they do not support foaf directly, but they should be able to use images for graph nodes and be able to display large graphs. Linux support would be nice.
Oh, and I'm searching for an interactive tool where I can move nodes by hand.
Update: Thanks for your input. I know graphviz and for static images it is really great. But for large datasets I need to be able to select nodes and highlight all neighbours.
Prefuse looks great: http://prefuse.org/gallery/graphview/
trough prefuse I found vizster, which is exactly what I search (just need to find some sourcecode) http://jheer.org/vizster/
perhaps the prefuse visualization toolkit might help you. It's based on Java and has many sample apps including a graph viewer.
You could try Graphviz. It runs on Linux, Windows and Mac OS X and it will generate an image (PNG, PS, etc) of the graph. You will have to transform your foaf data into its own custom language, but it's pretty easy to learn.
I don't know of any program that auto-generates graph visualizations and allows you to interactively adjust nodes, but Graphviz is a really popular tool for graph visualization. It can export to SVG so you can edit the result in your favorite vector graphics editor.
As recommended by other posters, definitely Graphviz. It takes an input file, let's call it foaf.dot, in the following format:
graph G {
"George Formby" [shape=custom, shapefile="file:formby.png"];
"Michael Jackson" [shape=custom, shapefile="file:jackson.png"];
"George Formby" -- "Michael Jackson";
"Fred Flinstone" -- "Michael Jackson";
"Michael Jackson" -- "Steve McQueen";
}
Note that this file describes an undirected graph (hopefully your friendships are reciprocal). The syntax for directed graphs is similar.
In order to output your graph to a pdf file (assuming that you have already installed graphviz) run the following command
dot -Tpdf foaf.dot > foaf.pdf
Graphviz supports a number of output formats other than pdf, see its documentation for details.
I find that the 'dot' program usually provides the best output results, however graphviz contains a total of 5 layout programs. From the documentation:
dot - filter for drawing directed graphs
neato - filter for drawing undirected graphs
twopi - filter for radial layouts of graphs
circo - filter for circular layout of graphs
fdp - filter for drawing undirected graphs
I previously recommended Graphviz, but thought I should add another recommendation now that I have used Gephi, a newer tool than a lot of the stuff here. It's a very powerful interactive graph exploration tool which I have found much more usable and much faster than a lot of the alternatives here.
Try using Google Social Graph. In one of the talks at dConstruct08 last week there was a social graph showing the friend connections of Robert Scoble.
http://code.google.com/apis/socialgraph/
http://dconstruct.org/2008
If you're using Java, you could use JGraph.
I know Adobe Flex has a few graph visualization components out there, and of course that would enable the app to run on Flash which has an excellent penetration rate into your potential userbase. I'd Google up the Flex SpringGraph component, and check that out. There are a ton of graphing components in the wild for Flex, both paid and free versions.
Just one SpringGraph off the top of my head:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1048510
check this forum: http://goosebumps4all.net/34all/bb/forumdisplay.php?fid=28
for some flare examples, there is a friend of a friend graph around there.
have you tried the Python-based IDE NodeBox (1.0)? That's what I used to generate these: http://givememydata.com/#images
vizster looks cool though, I'll check out that.
For large graphs, Gephi (http://gephi.org/) is very popular. It is highly customisable, with lots of layout and presentation options.