Posts

c++ - Multiple definiton of function when including library -

i try include headers library in different files of project , multiple definition errors on functions of library. after reading answer this question think problem functions implemented directly in header files of library. in particular want include files codecfactory.h , deltautil.h fastpfor . don't know if relevant problem include cmake project code in cmakelists.txt: include_directories(../../fastpfor/headers) add_library(fastpfor static ../../fastpfor/src/bitpacking.cpp ../../fastpfor/src/bitpacking.cpp ../../fastpfor/src/bitpackingaligned.cpp ../../fastpfor/src/bitpackingunaligned.cpp ../../fastpfor/src/horizontalbitpacking.cpp ../../fastpfor/src/simdunalignedbitpacking.cpp ../../fastpfor/src/simdbitpacking.cpp ${headers} ) everything works fin...

machine learning - Why does Neural Network give same accuracies for permuted labels? -

i have datset of 37 data points , around 1300 features. there 4 different classes , each class has around same number of data points. have trained neural network , got accuracy of 60% 2 hidden layers not bad (chance level 25%). the problem p-value. i'm calculating p-value permutation test. i'm permuting labels 1000 times , each permutation i'm calculating accuracy. p-value calculate percentage of permutation accuracies aver on original accuracy. for permutations of labels i'm getting same accuracy original labels, i.e. neural network not seem include labels in learning. if svm i'm getting permutations different accuracies (in end gaussian distribution). why case? by way, i'm using deeplearntoolbox matlab. is 60% success rate on training data or validation dataset set aside? if you're computing success rate on training data expect high accuracy after permuting labels. because classifier overfit data (1300 features 37 data points) , ac...

objective c - How to setup Facebook iOS SDK properly with Parse in AppDelegate? -

i'm trying integrate facebook parse project, have problems new sdk version. with older versions i've imported related header files appdelegate, pasted 2 methods , worked well. this how i've done it: // appdelegate.m #import <parse/parse.h> #import <parsefacebookutils/pffacebookutils.h> #import <facebooksdk/facebooksdk.h> - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { [parse setapplicationid:@"xy" clientkey:@"xy"]; [pffacebookutils initializefacebook]; [pfanalytics trackappopenedwithlaunchoptions:launchoptions]; return yes; } - (bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication:(nsstring *)sourceapplication annotation:(id)annotation { return [fbappcall handleopenurl:url sourceapplication:sourceapplication withsession:[pffa...

ssas - Process Data cube from job on SQL server -

i have sql server agent job on server(x) has step supposed process data cube on remote server(y). whenever run job fails , says server(x) not have permission process cube or not exist. believe have job set correctly how give access on server(y) server(x) process cube?? below script using. "sql server analysis services command" <batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"> <process xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/eng...

javascript - checking that an event fired with mocha -

how can test element fired event mocha? i've got ugly solution working, it's not readable, takes long time time out when fails, , doesn't give failure messaging. describe('test-element', function() { var el; beforeeach(function() { el = document.createelement('test-element'); }); it('fires save event', function(done) { el.addeventlistener('save', function() { done(); }); el.save(); }); in perfect world, think cooler. it('fires save event', function() { el.save(); expect(el).to.have.firedevent('save'); }); }); am going right way? there better approach or custom matcher library should using? how spying on fire function...? not sure stubbing/spying library you're using lets sinon.js . like... var spy = sinon.spy(el, 'fire'); el.save(); expect(spy.calledwith('save')).to.be.true;

eclipse - Java: reading configuration: Unable to create lock manager -

i getting following error. have eclipse mars , jre v 1.7 (i had installed v1.8 not compatible uninstalled , installed version.) i facing issue when invoking eclipse itself. eclipse.buildid=4.5.0.i20150603-2000 java.version=1.7.0_80 java.vendor=oracle corporation bootloader constants: os=win32, arch=x86_64, ws=win32, nl=en_us !entry org.eclipse.osgi 4 0 2015-07-14 11:20:39.006 !message error reading configuration: unable create lock manager. !stack 0 java.io.ioexception: unable create lock manager. @ org.eclipse.osgi.storagemanager.storagemanager.open(storagemanager.java:698) @ org.eclipse.osgi.storage.storage.getchildstoragemanager(storage.java:1750) @ org.eclipse.osgi.storage.storage.getinfoinputstream(storage.java:1767) @ org.eclipse.osgi.storage.storage.<init>(storage.java:127) @ org.eclipse.osgi.storage.storage.createstorage(storage.java:86) @ org.eclipse.osgi.internal.framework.equinoxcontainer.<init>(equinoxcontainer.java:75) @ org...

Matlab - how to analyse sequences of binary behavioural responses? -

i interested in effect of previous responses on current response in behavioural test. example if on 3 previous trials in test participant answers 'no', 'yes', 'yes' likelihood of 'yes' response on current trial different if had answered 'yes', 'yes', 'no' , , on. to analyse need find instances of particular sequences of responses in dataset. e.g. every time yes yes yes occurs, every time yes yes no occurs..., , forth possible permutations of yes/no sequences. to can hard code long chain of if/else statements in matlab (to work on fixed number of previous trials), or can write each possible sequence out , search both methods slow write. rather code hand fixed number of previous trials, i.e. previous 3 responses, there sensible solution use instead previous n trials? i.e. want analyse, say, previous 5 trials, rather previous 3, chain of if/else statements required becomes unbearable! nb. response data binary (i.e. ...