Giter VIP home page Giter VIP logo

junto's People

Contributors

dhgarrette avatar jasonbaldridge avatar kogecoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

junto's Issues

Running the simple example gives MRR and Accuracy as 0.0

This is after fixing issue #18

Number of nodes: 4
Number of edges: 5
1: delta:0.5491498679251984 obj:2.1960180733906567
2: delta:0.10661104947846078 obj:2.01739037613283
3: delta:0.04077357380979312 obj:1.9000600041927704
4: delta:0.02015839412263533 obj:1.8626257274679043
5: delta:0.011605686605780988 obj:1.8464512420420467
6: delta:0.0065220398546859525 obj:1.8351359645562653
7: delta:0.0037211986986449342 obj:1.830067299741951
8: delta:0.0021141925168267142 obj:1.8267260410463952
9: delta:0.0012035394144654606 obj:1.825039556510467
TIME: 0.014
Accuracy: 0.0
MRR: 0.0

Cannot build on scala 2.11.x

I noticed that this project cannot build on Scala 2.11.x when I tried it with below command:

$ sbt +package

It produced UNRESOLVED DEPENDENCY error during fetching the library org.rogach.scallop.
It seems that the scallop library for Scala 2.11 is distributed from 0.9.5 or later see mvnrepository.
But Junto depends on 0.9.4, so it fails to compile on Scala 2.11.

The quick & minimal fix is of course modify scallop version from 0.9.4 -> 0.9.5.

eval-label-file should be an optional argument

Right now, omitting it causes a match error.

Exception in thread "main" scala.MatchError: None (of class scala.None$)
	at junto.Junto$.main(Junto.scala:29)
	at junto.Junto.main(Junto.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

Minimal example as test case.

Make the minimal example work as a test case, similar to PrepAttachSpec.

Bonus: make the evaluation code a bit cleaner so that one isn't pulling out the label associations out of LabelSpecs, etc.

specifying eval-label-file argument causes index out of bounds exception

command line args to reproduce

-e examples/minimal/edges.minimal.tsv  -i 10 -o examples/minimal/predictions.tsv -s examples/minimal/seed_labels.minimal.tsv -t -v --eval-label-file examples/minimal/reference.output_predictions.minimal.csv
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
	at junto.graph.package$$anonfun$getLabels$2.apply(package.scala:48)
	at junto.graph.package$$anonfun$getLabels$2.apply(package.scala:44)
	at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
	at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:462)
	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
	at scala.collection.Iterator$class.foreach(Iterator.scala:893)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
	at scala.collection.TraversableOnce$class.toMap(TraversableOnce.scala:316)
	at scala.collection.AbstractIterator.toMap(Iterator.scala:1336)
	at junto.Junto$.main(Junto.scala:36)
	at junto.Junto.main(Junto.scala)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.