Git Product home page Git Product logo

t-snepointselector's People

Contributors

bakercp avatar brannondorsey avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

t-snepointselector's Issues

CSV data formats

  • Features csv with id as first column and n features as the rest of the columns
  • t-SNE csv with id as first column and and x, y[, z] as the rest of the columns
  • Labels csv with first column as id and second column as label. (used for cluster labeling)
  • KNN csv with id as first column (multiples allowed), neighbor id as next column, and cosine similarity value as third column.

EXC_BAD_ACCESS Error Message

Hi, brangerbriz!

I solved the problem. It's occurred by the absence of some midi files so that it doesn't match files and .json points. I closed the issue, Thank you.

...........................................................................................................................
I build t-SNEPointSelector well, but when I click a point (midi file) the error message occurred.

Thread 1: EXC_BAD_ACCESS (code=1, address=0x29970)

File name : DataHandler.cpp
string DataHandler::getMidiIdentifier(int index)
{
return _fileIdentifiers[index];
}

Do you have any idea about this?
Your help will be very helpful. Thanks in advance.

Awkward zoom

Zooming should always increase one zoom level towards what is currently the center of the window. This functionality is handled inside of src/NavTransformer.cpp and w/ functions being called inside ofApp::draw(). Problem areas include:

  • void NavTransformer::begin()
    {
    ofPushMatrix();
    ofTranslate(-_scale_offset);
    ofTranslate(-_offset);
    ofScale(ofGetWidth() * _scale, ofGetHeight() * _scale, 0);
    }
  • void NavTransformer::mouseScrolled(ofMouseEventArgs &args)
    {
    // float scrollSpeed = 0.1;
    _scale = args.scrollY == 1 ? _scale * 2.0 : _scale * 0.5;
    _scale_offset.x = (ofGetWidth() * 0.5) * (_scale - 1);
    _scale_offset.y = (ofGetHeight() * 0.5) * (_scale - 1);
    }

Fixes to this will likely require updates to:

  • ofPoint NavTransformer::toDataSpace(ofPoint p)
    {
    p += _scale_offset + _offset;
    p /= (ofPoint(ofGetWidth(), ofGetHeight()) * _scale);
    return p;
    }
    ofPoint NavTransformer::fromDataSpace(ofPoint p)
    {
    p -= _scale_offset + _offset;
    p *= (ofPoint(ofGetWidth(), ofGetHeight()) * _scale);
    return p;
    }

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.