autovi 0.4.1
New Features
- Introduce AUTO_VI$save_plot()which is the default
method of saving a plot by callingsave_plot(). This allows
user to override the plot saving method if needed.
- Introduce a method AUTO_VI$summary()which allows user
to get computed statistics provided inAUTO_VI$..str..().
- Introduce a method AUTO_VI$plot_pair()which allows
user to put the true residual plot and a null plot side-by-side.
- Introduce a method AUTO_VI$plot_lineup()which allows
user to generate a lineup for manual inspection.
- Introduce AUTO_VI$boot_method()which is the default
method of generating bootstrapped residuals. This allows user to
override the bootstrapping scheme if needed.
- Introduce residual_checker()as a new class constructor
ofAUTO_VI. It has an argumentkeras_model_namethat will be passed toget_keras_model().
Changes
- Integrate the AUTO_VI$select_feature()method intoAUTO_VI$feature_pca()for clarity. Now theAUTO_VI$feature_pca()method has one more parameterpatternfor specifying feature name pattern.
- Remove the typeparameter andp_value_typeparameter fromAUTO_VI$p_value()andAUTO_VI$check(), respectively, and unify the p-value
formula. Now the p-value is always calculated asmean(c(null_dist, vss) >= vss), wherenull_distis a vector of visual signal strength for null
residual plots, andvssis the visual signal strength for
the true residual plot.
- Improve AUTO_VI$feature_pca_plot(). Now the observed
point is always displayed on top of other groups.
- AUTO_VI$check()and- AUTO_VI$lineup_check()now returns- selfinstead of- invisible(self)to
provide a visible summary of the check result.
- get_keras_model()now have an option- formatto specify the format of the model to download,
including “npz”, “SavedModel” and “keras”. The previous version of- autovidownloads the pre-trained model in the “.keras”,
which could cause backward compatibility issue due to difference in
Python or- TensorFlowversions. The “SavedModel” format can
better handle this aspect but come with a larger file size so it may
slow down the model loading process. The “npz” format is the most
recommend one, as it will download a Python script to rebuild the model
from scratch and load weights from a “.npz” file. This overcomes many of
the issues mentioned above.
Bug Fix
- Fix a bug in AUTO_VI$vss()that arguments will be
passed incorrectly toKERAS_WRAPPER$image_to_array()when adata.frameor atibbleis provided by the user
to predict visual signal strength.
- Fix a bug in save_plot()where thepathargument was not functioning as intended..
autovi 0.4.0