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

Add output parser for dssim algo. #33

Merged
merged 3 commits into from Nov 14, 2020
Merged

Conversation

jleonard-r7
Copy link
Contributor

@jleonard-r7 jleonard-r7 commented Nov 13, 2020

Resolves #32

@@ -147,7 +151,7 @@
(.getAbsolutePath actual)
(.getAbsolutePath difference)]
opts)
mean-absolute-error (when-let [e (last (re-find #"all: .* \((.*)\)" stderr))]
mean-absolute-error (when-let [e ((compare-parsers metric) stderr)]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be a good idea to have a default too, so that we're not limiting the user to just the enumerated algos. Not sure which one would be better though, I guess the mae one would be best because people may already be using that one now with other algos.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this was my oversight, but could we also rename the mean-average-error to be metric?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok 👍

@jleonard-r7
Copy link
Contributor Author

Fixes #32 (as combination of dssim and no :crop will address that in config options).

@oliyh
Copy link
Owner

oliyh commented Nov 14, 2020

Looks great @jleonard-r7 thanks, are you happy with how it works? I'll merge if so.

@jleonard-r7
Copy link
Contributor Author

Yep, it’s ready to merge.

@oliyh oliyh merged commit b2251fe into oliyh:master Nov 14, 2020
jleonard-r7 added a commit to jleonard-r7/kamera that referenced this pull request Nov 21, 2020
Co-authored-by: Jonathan Leonard <johanatan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests incorrectly pass when 'actual' is bigger than 'expected' but the bits inside match.
3 participants