expfactory / experiments Goto Github PK
View Code? Open in Web Editor NEWlibrary of version controlled, tested experiments for expfactory
Home Page: https://expfactory.github.io/experiments/
License: BSD 3-Clause "New" or "Revised" License
library of version controlled, tested experiments for expfactory
Home Page: https://expfactory.github.io/experiments/
License: BSD 3-Clause "New" or "Revised" License
so the robots render it nicely in search results :) ๐ค ๐
The table should link to the experiments (repos and previews) that are in the library. Thus, this table should be derived from the library manifest.
we want the instructions to be programmatically accessible for any deployment application, so for example, on install into the container we can pipe them in upon init.
I made some changes to the existing experiments and I'm wondering if I would need to make another pull request. If so, could you provide me wit some instructions? I remember not doing the pull request correctly and I would like to get them right this time.
These are relatively simple to provide, so it should be reasonable.
exp_id
: must not yet exist for all expfactory experiments, alphanumerical / _
and -
allowed.url
: the repository where the code is maintaineddescription
: tell us what it istime
: estimated time to complete experiment, in minutescontributors
: a list of contributor namescognitive_atlas_task_id
: if relevantnotes
: any additional notestemplate
: a html/framework template, if relevantreference
: references, if this is important to youThese will be checked in the CI, and added to the CONTRIBUTING.md document.
I'm having some trouble saving the experiment data where (1) the data would fail to save and (2) the program will not automatically advance to the next experiment in the container. This occurs for both JsPsych and custom experiments. Here is the code that I'm using to save the data:
For JsPsych:
const settings = {
fullscreen: true,
on_finish: function (data) {
// Serialize the data
var promise = new Promise(function (resolve, reject) {
var data = jsPsych.data.get().json();
resolve(data);
})
promise.then(function (data) {
sendResults(data);
})
}
}
const jsPsych = initJsPsych(settings);
async function sendResults(results) {
function handleErrors(response) {
if (!response.ok) {
throw Error(response.statusText);
}
return response;
}
fetch("/save", {
method: "POST",
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ data: results })
})
.then(handleErrors)
.then(response => console.log("Request complete! response: ", response))
.catch(error =>
jsPsych.data.get().localSave('csv', 'cognitive_estimation_task_result.csv')
);
}
For custom:
async function sendResults(results) {
function handleErrors(response) {
if (!response.ok) {
throw Error(response.statusText);
}
return response;
}
fetch("/save", {
method: "POST",
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ data: results })
})
.then(handleErrors)
.then(response => console.log("Request complete! response: ", response))
.catch(error => console.log("We got an error: ", error));
}
experiments need more useful main pages too, what else to add?
https://expfactory.github.io/experiments
This will only be an issue if the repo gets yuuuge.
We would want a change in an experiment repo to trigger another test, that will alert the library if it doesn't pass. I need to think about how to best do this, there are a few options (and I'd like to avoid sharing of any kind of credential between repos). Arguably, the test cases should be provided for the experiment submitted, and then asserted to exist in testing. Any change to the status of the downstream repo (not passing tests, etc.) should alert the library.
e.g., a user should be able to build an image, and then "register" it here for others to see.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.