Comments (11)
I'm creating a Normalized class with functions
normalize(o::Normalized, x::Float64) = ... # normalizes and returns float
normalize!(o::Normalized, x::Float64) = ... # calls update! on underlying Var and normalizes
denormalize(...) = ...
...
Is there standard notation/lettering for signifying raw vs normalized variables? what should statenames return?
from onlinestats.jl.
Sorry for answering almost none of your questions and added a few more questions. Typically notation is X and Z (z-score), but should state
/statenames
just return mean and standard deviation?
Side note: Should we change Var
to MeanVar
to be more clear on what it estimates?
Could we do something along these lines? Does Normalized
store any fields other than Var
objects?
normalize(o::Var, x::Float64) = (x - mean(o)) / std(o))
normalize!(o::Var, x::Float64) = (update!(o, x); normalize(o, x))
from onlinestats.jl.
I also made a Vars
type last night, which may be easier to use than a vector of Var
types.
from onlinestats.jl.
How about something like
type Normalized{W <: Weighting}
xdata::Vars{W}
ydata::Var{W}
end
normalize()
could return a tuple of standardized x and standardized y
xnew, ynew = normalize!(o.Normalized, x::VecF, y::Float64)
from onlinestats.jl.
- Could we just add normalize/denormalize to Var? Yes I think so. I'll trash my normalize.jl file.
- I don't think we need to change Var to MeanVar because it also tracks the mean... however I do think that it might improve readability to call it Variance??
- Side question... does it make sense to return stddev instead of variance in the state? Or both? Which do you find is more useful?
from onlinestats.jl.
I don't think we need that normalized class at all... Var is plenty as you suggested
from onlinestats.jl.
- I do like
Variance
a bit better - stddev is more useful, but is it strange if the Variance type returns mean and standard deviation?
from onlinestats.jl.
Yes... that is a bit strange I suppose. I'll leave it up to you, since I can always map(sqrt, ...)
from onlinestats.jl.
Also, if you use the Vars
type, it has a std()
method which returns a vector of stddevs.
from onlinestats.jl.
Did you add Vars to the repo? I see means.jl, but no vars.jl
from onlinestats.jl.
Sorry, just pushed it now.
from onlinestats.jl.
Related Issues (20)
- Possible type instability in `OnlineStatsBase.jl` HOT 1
- Group with 3 Stats not working for multi-observations? HOT 3
- Julia VS Code extension reports "Possible method call error" for `fit!` HOT 3
- _fit! on AutoCov is not type stable HOT 1
- Extract field of an observation before feeding an OnlineStats - ValueExtractor wrapper HOT 2
- Feature Request: OnlineStat Chaining HOT 1
- Using StatLag without depending on OnlineStats (just OnlineStatsBase) HOT 4
- ExtremeValues doesn't work HOT 2
- Odd interaction of `Group` with broadcast HOT 2
- [speculative] `NullStat` HOT 1
- Plot of GroupBy of HeatMap fails HOT 1
- when fit!-ing a Group to a NamedTuple, the names are ignored HOT 2
- Documentation Request: List which Monoids support merge HOT 1
- Feature Request: PCA wrapper around CovMatrix which also supports transform methods
- Pretty printing is unpretty inside DataFrame HOT 1
- Support `keys` and `values` on `GroupBy` HOT 1
- Bug: Y-Marginals for heatmap are wrong HOT 1
- Allow counts argument in `fit!` HOT 5
- Suggestions for OnlineStats v2 HOT 1
- Standard Deviation - StdDev HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onlinestats.jl.