Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joep6 #144

Open
wants to merge 118 commits into
base: master
Choose a base branch
from
Open

Joep6 #144

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
3a09d1a
upgrading scannables
petered Jul 17, 2018
8fb2bd9
ok, the scan thing is internally messy but seems to work'
petered Jul 18, 2018
8688d22
fixed rsync-copying-all-experiments problem
petered Jul 19, 2018
a0a4a69
a bunch of things with nested structures
petered Aug 7, 2018
0db3d40
everything
petered Sep 14, 2018
ef24bb3
ok these are kind of working
petered Sep 22, 2018
e11bceb
stuuuuuf
petered Oct 19, 2018
e473ff1
aahhh
petered Oct 19, 2018
6232256
ARTEMIS CHANGES FROM DEAD MACHINE
Nov 12, 2018
949dcd4
ducks now support boolean indexing
Nov 20, 2018
e1700ca
stuuuufff
petered Dec 7, 2018
2e412dd
join and split
petered Dec 14, 2018
b745818
fixed pareto stuff
petered Dec 19, 2018
c1fa4b6
ooook
petered Dec 19, 2018
f4a2da6
before-changing-again
petered Dec 21, 2018
1339210
puuuush
petered Dec 21, 2018
0962503
added async dataloaders
petered Jan 2, 2019
ba84ebd
async updates
petered Jan 2, 2019
fd727b1
Merge branch 'peter' of http://github.com/QUVA-Lab/artemis into peter
petered Jan 3, 2019
455ebe4
rate limiter made
petered Jan 3, 2019
eb56b70
oook
petered Jan 3, 2019
64e7c26
profile improvements
petered Jan 4, 2019
0a70f5b
compatibility
petered Jan 5, 2019
8e9aa2f
ook
petered Jan 17, 2019
c97b756
oook
petered Jan 22, 2019
792bd8d
lilthings
petered Jan 24, 2019
34ae201
Merge branch 'peter' of http://github.com/QUVA-Lab/artemis into peter
petered Jan 24, 2019
13ba79f
windowsfix
Jan 28, 2019
4db0048
parameter_search improvements
petered Feb 14, 2019
fd82c62
stuuuff
petered Feb 16, 2019
50c6c44
preclean
petered Feb 16, 2019
4bf2fe0
cleaned up parallel coords plot
petered Feb 17, 2019
c46b2fd
indice build
petered Apr 11, 2019
7003281
addressed test fail
petered Apr 16, 2019
6c3e214
fixed
petered Apr 16, 2019
c8ba0d8
addressed errors
petered Apr 16, 2019
8d0123e
again
petered Apr 16, 2019
114c546
should pass?
petered Apr 16, 2019
11c0a1b
address tests
petered Apr 17, 2019
3180e45
Merge pull request #1 from petered/peter
petered Apr 17, 2019
f1635f3
oops forgot to push cleanup
petered Apr 17, 2019
b98f38b
more clean
petered Apr 17, 2019
ad2871f
Merge pull request #2 from petered/peter
petered Apr 17, 2019
ba685eb
added a bunch of typing and allowed experiment selection by user range
petered Sep 15, 2022
d6eb235
changes made from eagleeyes
petered Jan 8, 2023
80229f3
moved the rest over
petered Jan 8, 2023
0aee5f6
ok push
petered Jan 8, 2023
a54efc9
video_reader
petered Jan 8, 2023
023d59a
some updates while making video scanner
petered Jan 10, 2023
bf26f87
premerge
petered Jan 10, 2023
885ba64
ok done
petered Jan 10, 2023
405737f
got the image frame thing working
petered Jan 29, 2023
2219d54
done
petered Jan 29, 2023
ee93fb1
moar
petered Feb 4, 2023
5245a58
small updates
petered Feb 14, 2023
7e8d342
fix import
petered Feb 17, 2023
93ad2dc
image read
petered Feb 17, 2023
f4eca3e
jump
petered Mar 7, 2023
fe944c8
Merge branch 'migrating_stuff_in' of github.com:petered/artemis into …
petered Mar 7, 2023
89fcf1e
a bunch of small changes while working on eagle eyes scan
petered Mar 30, 2023
c169206
premerge
petered Mar 30, 2023
b50a31a
Merge branch 'migrating_stuff_in' of github.com:petered/artemis into …
petered Mar 30, 2023
b60c577
misc
petered Apr 19, 2023
6ddb9e2
Merge branch 'migrating_stuff_in' of github.com:petered/artemis into …
petered Apr 19, 2023
de73ada
couple fixes
petered Apr 19, 2023
32375f6
more-robust-metadata
petered Apr 27, 2023
7d78e69
livestreaming changes
petered May 12, 2023
9bca84e
whatever
petered May 18, 2023
3fc372c
allow custom disk memo folder
petered May 19, 2023
e8cac61
schtuff
petered Jun 6, 2023
f5da0dc
local-changes
petered Jun 6, 2023
fef745d
Merge branch 'migrating_stuff_in' of https://github.com/petered/artem…
petered Jun 6, 2023
97bc556
frames start at 1
petered Jun 6, 2023
0268b64
video reader stuff
petered Jun 29, 2023
79f4096
enable multiline text
petered Jul 4, 2023
63e0856
passthrough image writer
petered Jul 4, 2023
4ae0c69
max zoom
petered Jul 10, 2023
2759f45
open and create parent
petered Jul 11, 2023
283061e
oops
petered Jul 12, 2023
3440096
decorders
petered Jul 12, 2023
f8ea961
remove unneded imports
petered Jul 12, 2023
52d4a75
indent
petered Jul 12, 2023
6290e9e
filenotfound errors
petered Jul 17, 2023
8c30604
decorders
petered Jul 29, 2023
78c5033
fix metadata bug
petered Aug 7, 2023
93498f9
metafix-bad
petered Aug 21, 2023
22a3a69
took theirs
petered Aug 21, 2023
c59c6a0
added size to mock cap
petered Aug 23, 2023
91f24b1
allow failed delete on holddir
petered Aug 23, 2023
6213513
updates for 0.4.0
petered Sep 29, 2023
0601cbc
fixed timestamp read
petered Oct 4, 2023
47fc84a
little changes
petered Oct 4, 2023
7618e1e
cyrillic image paths
petered Oct 27, 2023
cbad6a2
whatever was local
petered Oct 27, 2023
401dd6b
Merge branch '0.4.1' of github.com:petered/artemis into 0.4.1
petered Oct 27, 2023
8daa7d3
metadata
petered Nov 7, 2023
0c54f18
fixed import
petered Nov 14, 2023
6e91994
import iterable
petered Nov 14, 2023
1b0b29d
hackathon commit
petered Nov 23, 2023
2f9a475
changes
petered Nov 23, 2023
cedd6db
fix_import
petered Nov 28, 2023
35f6fa1
tk_utils
petered Nov 28, 2023
6a58736
no requests
petered Nov 28, 2023
0207a3f
attrs
petered Nov 28, 2023
1527c2b
exitable overlay frame and functional import fix
petered Nov 30, 2023
9410c8e
little ui changes
petered Jan 31, 2024
4ad00ef
tabbed frame tweaks - for ees 0.5.0
petered Jan 31, 2024
cc29285
checkpoint for build
petered Feb 1, 2024
11e5938
ook
petered Feb 17, 2024
ee25305
tooltip
petered Feb 20, 2024
e43007e
somthin
petered Feb 22, 2024
56ee34f
changes changes
petered Mar 4, 2024
ea0486b
small things
petered Mar 6, 2024
1cb1237
added splash screen function (thanks ChatGPT)
petered Mar 6, 2024
eb9fb0c
more
petered Mar 6, 2024
c379c49
changes
petered Mar 8, 2024
5e3f33a
added frame focus to fix black frame after switching back to main
jnmaas Mar 8, 2024
3131585
added frame focus to fix black frame after switching back to main
jnmaas Mar 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var/
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# Usually these files are written by a ui_code script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
Expand Down Expand Up @@ -71,4 +71,4 @@ venv/
# Files
/Data
/docs/build

.pytest_cache
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: python
language: ui_code
python:
- 2.7
- 3.6
Expand Down
4 changes: 4 additions & 0 deletions artemis/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
from artemis.fileman.config_files import get_config_path, get_config_value

Expand All @@ -15,6 +16,9 @@
_CONFIG_FILE_NAME = '.artemisrc'


ARTEMIS_LOGGER = logging.getLogger('artemis')


def check_or_create_artemis_config():
config_path = get_config_path(_CONFIG_FILE_NAME)
if not os.path.exists(config_path):
Expand Down
2 changes: 1 addition & 1 deletion artemis/examples/demo_mnist_logreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
2) Through the experiment API.

In the bottom of this file, you an see example code for running either the UI or API. You can try the different versions
by either running this file as "python demo_mnist_logreg.py ui" or "python demo_mnist_logreg.py api"
by either running this file as "ui_code demo_mnist_logreg.py ui" or "ui_code demo_mnist_logreg.py api"
"""


Expand Down
23 changes: 16 additions & 7 deletions artemis/experiments/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def experiment_function(f):
"""
Use this decorator (@experiment_function) on a function that you want to run. e.g.

.. code-block:: python
.. code-block:: ui_code

@experiment_function
def demo_my_experiment(a=1, b=2, c=3):
Expand All @@ -27,7 +27,7 @@ def experiment_root(f):
"""
Use this decorator on a function that you want to build variants off of:

.. code-block:: python
.. code-block:: ui_code

@experiment_root
def demo_my_experiment(a, b=2, c=3):
Expand All @@ -44,7 +44,7 @@ class ExperimentFunction(object):
This is the most general decorator. You can use this to add details on the experiment.
"""

def __init__(self, show = show_record, compare = compare_experiment_records, display_function=None, comparison_function=None, one_liner_function=sensible_str, is_root=False):
def __init__(self, show = None, compare = compare_experiment_records, display_function=None, comparison_function=None, one_liner_function=None, result_parser = None, is_root=False, name=None):
"""
:param show: A function that is called when you "show" an experiment record in the UI. It takes an experiment
record as an argument.
Expand All @@ -55,16 +55,17 @@ def __init__(self, show = show_record, compare = compare_experiment_records, dis
You can use call this via the UI with the compare_experiment_results command.
:param one_liner_function: A function that takes your results and returns a 1 line string summarizing them.
:param is_root: True to make this a root experiment - so that it is not listed to be run itself.
:param name: Custom name (if None, experiment will be named after decorated function)
"""
self.show = show
self.compare = compare

if display_function is not None:
assert show is show_record, "You can't set both display function and show. (display_function is deprecated)"
assert show is None, "You can't set both display function and show. (display_function is deprecated)"
show = lambda rec: display_function(rec.get_result())

if comparison_function is not None:
assert compare is compare_experiment_records, "You can't set both display function and show. (display_function is deprecated)"
# assert sh is None, "You can't set both display function and show. (display_function is deprecated)"

def compare(records):
record_experiment_ids_uniquified = uniquify_duplicates(rec.get_experiment_id() for rec in records)
Expand All @@ -74,15 +75,23 @@ def compare(records):
self.compare = compare
self.is_root = is_root
self.one_liner_function = one_liner_function
self.result_parser = result_parser
self.name = name

def __call__(self, f):
"""
:param Callable f: The function you decorated
:return Experiment: An Experiment object (It still behaves as the original function when you call it, but now
has additional methods attached to it associated with the experiment).
"""
f.is_base_experiment = True
ex = Experiment(
name=f.__name__,
name=f.__name__ if self.name is None else self.name,
function=f,
show=self.show,
compare = self.compare,
one_liner_function=self.one_liner_function,
is_root=self.is_root
is_root=self.is_root,
result_parser=self.result_parser,
)
return ex
Loading