1.1.1. svGPFA.plot package#

1.1.1.1. Submodules#

1.1.1.2. svGPFA.plot.plotUtilsPlotly module#

svGPFA.plot.plotUtilsPlotly.get3DPlotOrthonormalizedLatentsAcrossTrials(trials_times, latentsMeans, C, trials_ids, latentsToPlot=[0, 1, 2], align_event_times=None, marked_events_times=None, marked_events_colors=None, marked_events_markers=None, marked_size=3, trials_annotations=None, trials_colors=None, default_trial_color='gray', xyzLabelsPattern='Latent {:d}', title='')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotCIF(times, values, title='', xlabel='Time (sec)', ylabel='Conditional Intensity Function')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotCIFsImageOneNeuronAllTrials(times, cif_values, neuron_index, sort_event=None, align_event_times=None, marked_events=None, title='', xlabel='Time (sec)', ylabel='Sorted Trial Index', event_line_color='white', event_line_width=5)[source]#
svGPFA.plot.plotUtilsPlotly.getPlotCIFsOneNeuronAllTrials(trials_times, cif_values, neuron_index, trials_ids, spikes_times=None, align_event_times=None, marked_events_times=None, marked_events_colors=None, marked_events_markers=None, marked_size=10, trials_annotations=None, ylim=None, trials_colors=None, default_trial_color='gray', xlabel='Time (sec)', ylabel='Value', title='')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotEmbeddingAcrossTrials(times, embeddingsMeans, embeddingsSTDs, cbAlpha=0.2, indPointsLocsColor='rgba(255,0,0,0.5)', trials_colors_patterns=None, default_trial_color_pattern='rgba(128,128,128,{:f})', cb_transparency=0.3, mean_transparency=1.0, xlabel='Time (msec)', ylabel='Value', title='')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotEmbeddingParams(C, d, linestyle='solid', marker='asterisk', xlabel='Neuron Index', ylabel='Value')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotEstimatedLatentsForTrial(times, latentsMeans, latentsSTDs, indPointsLocs, trialToPlot, cbAlpha=0.2, cbFillColorPattern='rgba(255,0,0,{:f})', meanLineColor='red', indPointsLocsColor='rgba(255,0,0,0.5)', xlabel='Time (sec)', ylabel='Latent', titlePattern='Trial {:d}')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotKernelsParams(kernelsTypes, kernelsParams, color='red', ylabel='Value')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotKernelsParamsOneLatent(kernelParams, labels, title, color='red')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotLatentAcrossTrials(times, latentsMeans, latentsSTDs, latentToPlot, trials_ids=None, indPointsLocs=None, cbAlpha=0.2, indPointsLocsColor='rgba(255,0,0,0.5)', trials_colors_patterns=None, default_trial_color_pattern='rgba(128,128,128,{:f})', cb_transparency=0.3, mean_transparency=1.0, xlabel='Time (sec)', ylabel='Value', titlePattern='Latent {:d}')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotLowerBoundHist(lowerBoundHist, elapsedTimeHist=None, xlabelIterNumber='Iteration Number', xlabelElapsedTime='Elapsed Time (sec)', ylabel='Lower Bound', marker='cross', linestyle='solid')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotLowerBoundVsOneParam(paramValues, lowerBoundValues, refParams, title, yMin, yMax, lowerBoundLineColor, refParamsLineColors, percMargin=0.1, xlab='Parameter Value', ylab='Lower Bound')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotLowerBoundVsTwoParamsParam(param1Values, param2Values, lowerBoundValues, refParam1, refParam2, refParamsLowerBound, refParamText, title, lowerBoundQuantile=0.5, param1Label='Parameter 1', param2Label='Parameter 2', lowerBoundLabel='Lower Bound', markerSize=3.0, markerOpacity=0.8, markerColorscale='Viridis', zMin=None, zMax=None)[source]#
svGPFA.plot.plotUtilsPlotly.getPlotMean(x, mean, xlabel='x', ylabel='y', title='', mean_line_color='red', mean_width=5)[source]#
svGPFA.plot.plotUtilsPlotly.getPlotMeanWithCI(x, mean, ci, xlabel='x', ylabel='y', title='', CBalpha=0.3, cbFillColorPattern='rgba(255,0,0,{:f})', meanLineColor='red')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotOrthonormalizedEmbeddingParams(C, d, hovertemplate=None, text=None, mode='lines+markers', linestyle='solid', marker='asterisk', xlabel='Neuron Index', ylabel='Value')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotOrthonormalizedLatentAcrossTrials(trials_times, latentsMeans, C, trials_ids, latentToPlot=0, align_event_times=None, marked_events_times=None, marked_events_colors=None, marked_events_markers=None, marked_size=10, trials_colors=None, default_trial_color='rgba(128,128,128)', trials_annotations=None, ylim=None, xlabel='Time (sec)', ylabel='Value', titlePattern='Orthonormalized latent {:d}')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotOrthonormalizedLatentImageOneNeuronAllTrials(times, latentsMeans, latentToPlot, C, sort_event=None, align_event_times=None, marked_events=None, trials_ids=None, trials_annotations=None, zlim=None, title='', xlabel='Time (sec)', ylabel='Trial Index', event_line_color='white', event_line_width=5)[source]#
svGPFA.plot.plotUtilsPlotly.getPlotResKSTestTimeRescalingNumericalCorrection(diffECDFsX, diffECDFsY, estECDFx, estECDFy, simECDFx, simECDFy, cb, title='', dataColor='blue', cbColor='red', refColor='black', estECDFcolor='magenta', simECDFcolor='cyan', estECDFmarker='cross', simECDFmarker='x', dataLinestyle='solid', cbLinestyle='dash', refLinestyle='solid', dataMarker='circle', ylabel='Empirical Cumulative Distribution Function', xlabel='Rescaled Time', diffLabel='Difference', estECDFlabel='Estimated', simECDFlabel='True')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotResROCAnalysis(fpr, tpr, auc, title='', colorROC='red', colorRef='black', linestyleROC='dash', linestyleRef='dot', labelPattern='ROC curve (area={:0.2f})', xlabel='False Positive Rate', ylabel='True Positive Rate', legendLoc='lower right')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotSimulatedAndEstimatedCIFs(tTimes, tCIF, tLabel, eMeanTimes=None, eMeanCIF=None, eMeanLabel=None, xlabel='Time (sec)', ylabel='CIF', title='')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotSmoothedSpikes(spikes_times, gf_std_secs, epoch_start_offset, epoch_end_offset, bin_size_secs, neuron_to_plot_index, trials_to_plot, trials_colors, title)[source]#
svGPFA.plot.plotUtilsPlotly.getPlotSpikesRatesAllTrialsAllNeurons(spikes_rates, trials_ids, clusters_ids, xlabel='Neuron Index', ylabel='Average Spike Rate (Hz)')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedEmbedding(tTimes, tSamples, tMeans, tSTDs, eTimes, eMeans, eSTDs, CBalpha=0.2, tCBFillColorPattern='rgba(0,0,255,{:f})', tSamplesLineColor='black', tMeanLineColor='blue', eCBFillColorPattern='rgba(255,0,0,{:f})', eMeanLineColor='red', xlabel='Time (sec)', ylabel='Embedding', title='')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedEmbeddingParams(trueC, trueD, estimatedC, estimatedD, linestyleTrue='solid', linestyleEstimated='dash', marker='asterisk', xlabel='Neuron Index', ylabel='Coefficient Value')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedEmbeddingPropCovered(propCovered, percent, title='', xlabel='Neuron', ylabel='Coverage', tColor='blue', pColor='red', mColor='green')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedIndPointsCovs(trueIndPointsCovs, estimatedIndPointsCovs, linetypeTrue='solid', linetypeEstimated='dash', labelTruePattern='True[:,{:d}]', labelEstimatedPattern='Estimated[:,{:d}]', colorsList=['#636EFA', '#EF553B', '#00CC96', '#AB63FA', '#FFA15A', '#19D3F3', '#FF6692', '#B6E880', '#FF97FF', '#FECB52'], xlabel='Inducing Point Index', ylabel='Inducing Points Covariance')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedIndPointsCovsOneTrialOneLatent(trueIndPointsCov, estimatedIndPointsCov, title, linetypeTrue='solid', linetypeEstimated='dash', labelTruePattern='True[:,{:d}]', labelEstimatedPattern='Estimated[:,{:d}]', colorsList=['#636EFA', '#EF553B', '#00CC96', '#AB63FA', '#FFA15A', '#19D3F3', '#FF6692', '#B6E880', '#FF97FF', '#FECB52'], xlabel='Inducing Point Index', ylabel='Inducing Points Covariance')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedIndPointsLocs(trueIndPointsLocs, estimatedIndPointsLocs, linetypeTrue='solid', linetypeEstimated='dash', labelTrue='True', labelEstimated='Estimated', marker='asterisk', xlabel='Inducing Point Index', ylabel='Inducing Point Location')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedIndPointsLocsOneTrialOneLatent(trueIndPointsLocs, estimatedIndPointsLocs, title, linetypeTrue='solid', linetypeEstimated='dash', labelTrue='True', labelEstimated='Estimated', marker='asterisk', xlabel='Inducing Point Index', ylabel='Inducing Point Location')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedIndPointsMeans(trueIndPointsMeans, estimatedIndPointsMeans, linetypeTrue='solid', linetypeEstimated='dash', labelTrue='True', labelEstimated='Estimated', xlabel='Inducing Point Index', ylabel='Inducing Point Mean')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedIndPointsMeansOneTrialOneLatent(trueIndPointsMeans, estimatedIndPointsMeans, trueIndPointsSTDs, estimatedIndPointsSTDs, title, cbAlpha=0.2, trueCBFillColorPattern='rgba(0,0,255,{:f})', trueMeanLineColor='blue', estimatedCBFillColorPattern='rgba(255,0,0,{:f})', estimatedMeanLineColor='red', xlabel='Inducing Point Index', ylabel='Inducing Point Mean')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedKernelsParams(kernelsTypes, trueKernelsParams, estimatedKernelsParams, colorTrue='blue', colorEstimated='red', trueLegend='True', estimatedLegend='Estimated')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedKernelsParamsOneLatent(trueKernel, estimatedKernelParams, title, colorTrue='blue', colorEstimated='red', trueLegend='True', estimatedLegend='Estimated')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedLatents(tTimes, tLatentsSamples, tLatentsMeans, tLatentsSTDs, tIndPointsLocs, eTimes, eLatentsMeans, eLatentsSTDs, eIndPointsLocs, trialToPlot=0, CBalpha=0.2, tCBFillColorPattern='rgba(0,0,255,{:f})', tSamplesLineColor='black', tMeanLineColor='blue', eCBFillColorPattern='rgba(255,0,0,{:f})', eMeanLineColor='red', tIndPointsLocsColor='rgba(0,0,255,0.5)', eIndPointsLocsColor='rgba(255,0,0,0.5)', xlabel='Time (sec)', ylabelPattern='Latent {:d}', titlePattern='Trial {:d}')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedLatentsMeans(trueLatentsMeans, estimatedLatentsMeans, trialsTimes, colorTrue='blue', colorEstimated='red', labelTrue='True', labelEstimated='Estimated', xlabel='Time (sec)', ylabel='Latent Value')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTrueAndEstimatedLatentsOneTrialOneLatent(tTimes, tLatentsSamples, tLatentsMeans, tLatentsSTDs, tIndPointsLocs, eTimes, eLatentsMeans, eLatentsSTDs, eIndPointsLocs, title, CBalpha=0.2, tCBFillColorPattern='rgba(0,0,255,{:f})', tSamplesLineColor='black', tMeanLineColor='blue', eCBFillColorPattern='rgba(255,0,0,{:f})', eMeanLineColor='red', tIndPointsLocsColor='rgba(0,0,255,0.5)', eIndPointsLocsColor='rgba(255,0,0,0.5)', xlabel='Time (sec)', ylabel='Latent Value')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTruePythonAndMatlabCIFs(tTimes, tCIF, tLabel, pTimes, pCIF, pLabel, mTimes, mCIF, mLabel, xlabel='Time (sec)', ylabel='CIF', title='')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTruePythonAndMatlabEmbedding(tTimes, tSamples, tMeans, tSTDs, pTimes, pMeans, pSTDs, mTimes, mMeans, mSTDs, CBalpha=0.2, tCBFillColorPattern='rgba(0,0,255,{:f})', tSamplesLineColor='black', tMeanLineColor='blue', pCBFillColorPattern='rgba(255,0,0,{:f})', pMeanLineColor='red', mCBFillColorPattern='rgba(0,255,0,{:f})', mMeanLineColor='green', xlabel='Time (sec)', ylabel='Embedding', title='')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTruePythonAndMatlabEmbeddingPropCovered(propCovered, percent, title='', xlabel='Neuron', ylabel='Coverage', tColor='blue', pColor='red', mColor='green')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTruePythonAndMatlabKernelsParams(kernelsTypes, trueKernelsParams, pythonKernelsParams, matlabKernelsParams, colorTrue='blue', colorPython='red', colorMatlab='green', trueLegend='True', pythonLegend='Python', matlabLegend='Matlab')[source]#
svGPFA.plot.plotUtilsPlotly.getPlotTruePythonAndMatlabLatents(tTimes, tLatents, pTimes, pMuK, pVarK, mTimes, mMuK, mVarK, trialToPlot=0, xlabel='Time (sec)', ylabelPattern='Latent {:d}')[source]#
svGPFA.plot.plotUtilsPlotly.getSimulatedEmbeddingPlot(times, samples, means, stds, title, cbAlpha=0.2, cbFillColorPattern='rgba(0,0,255,{:f})', samplesLineColor='black', meanLineColor='blue', xlabel='Time (sec)', ylabel='Embedding')[source]#
svGPFA.plot.plotUtilsPlotly.getSimulatedLatentPlot(times, latent_samples, latent_means, latent_STDs, title, alpha=0.2, marker='x', xlabel='Time (sec)', ylabel='Value', cbFillColorPattern='rgba(0,0,255,{:f})', mean_linecolor='rgb(0,0,255)', samples_linecolor='rgb(0,0,0)')[source]#
svGPFA.plot.plotUtilsPlotly.getSimulatedLatentsPlot(times, latents_samples, latents_means, latents_STDs, alpha=0.5, marker='x', xlabel='Time (sec)', ylabel='Amplitude', width=1250, height=850, cb_fillcolor_pattern='rgba(0,100,0,{:f})', meanLineColor='rgb(0,100,00)', samplesLineColor='rgb(0,0,0)')[source]#
svGPFA.plot.plotUtilsPlotly.getSimulatedSpikesTimesPlotMultipleTrials(spikesTimes, xlabel='Time (sec)', ylabel='Neuron', titlePattern='Trial {:d}')[source]#
svGPFA.plot.plotUtilsPlotly.getSpikesTimesPlotOneNeuron(spikes_times, neuron_index, sorting_times=None, title='', trials_ids=None, marked_events_times=None, marked_events_colors=None, marked_events_markers=None, align_event_times=None, trials_colors=None, default_trial_color='black', marked_size=10, spikes_symbol='line-ns-open', xlabel='Time (sec)', ylabel='Trial', event_line_color='rgba(0, 0, 255, 0.2)', event_line_width=5, spikes_marker_size=9)[source]#
svGPFA.plot.plotUtilsPlotly.getSpikesTimesPlotOneTrial(spikes_times, title, align_event_times=None, marked_events=None, xlabel='Time (sec)', ylabel='Neuron', event_line_color='rgba(0, 0, 255, 0.2)', event_line_width=5)[source]#

1.1.1.3. Module contents#