responsible-ai-toolbox/scripts/e2e-widget.js

399 строки
12 KiB
JavaScript
Исходник Постоянная ссылка Обычный вид История

const { spawnSync, spawn } = require("child_process");
const fs = require("fs");
const path = require("path");
const _ = require("lodash");
const commander = require("commander");
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
const { exit } = require("process");
2022-09-20 08:36:03 +03:00
const nxPath = path.join(__dirname, "../node_modules/@nrwl/cli/bin/nx.js");
const baseDir = path.join(__dirname, "../notebooks/responsibleaidashboard");
const tabularDir = path.join(baseDir, "tabular");
const visionDir = path.join(baseDir, "vision");
const textDir = path.join(baseDir, "text");
const filePrefix = "responsibleaidashboard-";
// Please add notebook name into the appropriate 'fileNames' array only when you are adding e2e tests to that notebook.
// Keep this list in sync with .github/workflows/CI-e2e-notebooks.yml and/or .github/workflows/CI-e2e-notebooks-vision.yml
const tabularFileNames = [
"responsibleaidashboard-census-classification-model-debugging",
"responsibleaidashboard-diabetes-regression-model-debugging",
"responsibleaidashboard-housing-classification-model-debugging",
2022-02-10 02:00:48 +03:00
"responsibleaidashboard-diabetes-decision-making",
"responsibleaidashboard-housing-decision-making",
Add forecasting to raiwidgets and add a forecasting notebook (#2252) * Add postga build trigger (#1755) (#1756) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add model wrapper for wrapping predictions and test data (#1762) * Add model wrapper for wrapping predictions and test data Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix failing tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Change description of cohort selection panel in Aggregate Feature Importance (#1770) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Support cohort filtering of string target in rai_insights (#1771) * Port tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix rai_insights Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Simplify tests in test_cohort_filter.py (#1772) * Simply tests in test_cohort_filter.py Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Change test name Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Forecasting Dashboard This commit adds the Forecasting Dashboard capabilities in both UI and SDK. * remove unrelated file * basic set of changes to get it working again * forecasting_grains -> time_series_id_column_names * fix breaking changes in latest main, add quantile prediction, fix date conversion, remove obsolete managers * fix UI components (including table and what-if creation, chart still left tbd) * get dashboard to work with multiple time series and switching back and forth * remove data explorer and model overview, create and edit cohort functionalities from forecasting * lintfix * localizzation * remove console.log * remove question * remove unrelated changes, fix package.json * string fixes and package.json adjustment * localization * localization * more localization and removing of unrelated files * remove unrelated files * remove unrelated file changes * remove is_forecasting_true_y * lintfix * add dropdown label * feature metadata input validation updates * cache transformation predictions * lintfix * remove isUndefinedOrEmpty * remove isUndefinedOrEmpty * rename isAllDataCohort file as requested * lintfix * first draft of notebook * get notebook to run, generate cohorts (not finished) * ntoebook * convert filter args and column names properly * fix datetime handling * fix forecast request handling * working version for bug bash * add wheels * add UI changes * update notebook to fix model download * 15 iterations * lintfix * add example of operation method string * add check for context * add explanatory comment * move description creation logic into getDescription * lintfix * remove datetime_features from snapshot * lintfix and other weirdnesses * undo print removal * remove wheels, lintfix, small cleanup * use META_JSON directly instead of declaring a variable * move constants to common files and reuse * lowercase f * isort * remove datetime_features * sktime notebook (1st half) * isort * debugging the notebook issue * use parentheses instead of backslashes * flake8 * isort * sktime progress * pre-unified RAIInsights commit * pre-unified RAIInsights commit 2 * first pass over unification * unify RAIInsights and RAIForecastingInsights * adjustments to serialization * cleanup, test fixes, consolidation, TODO fixes * fix tests * isort * flake8 * feature metadata and categorical_features consolidation * fix serialization of feature metadata * fix tests * flake8 * tests for feature metadata and cat features * flake8 * remove remnants of RAIForecastingInsights * fix string * move other utils back to rai insights * undo ModelTask import changes * undo ModelTask references to raiutils * undo references to ModelTask in raituils * remove raiutils changes since they're in a separate branch * datetime_features and time_series_id_features replacement * pytest.mark.skip * furthe datetime_features fixes * TS ID col name fix * try out asfreq * notebook try asfreq interpolation * attempt to condense index into a single col * add hidden feature flag, fix tests * remove experimental file, isort * undo string change * restructure wrappers and field to file mapping code * remove unnecessary TODO * get AML notebook to work * get AML notebook fully working * resolve some issues with sktime * notebook * remove duplicated test case * flake8 * isort * flalke8 * wrap zip object with list * use ModelTask from raiutils * remove prints * flake8 * isort * use FORECASTING from raiutils.models * isort * fix sktime issue * get past Python errors * fix predictions array shape * fix UI-Python mismatch with renamed time and time series ID column names (now called "features") * lintfix * undo changes that aren't needed any longer * remove AML notebook * update notebook by removing unnecessary content * notebook tests, basic setup * ids for tests * fix notebook based on latest changes in the repo * add test for adding a what if case * flake8 and cleanup * isort * lintfix * fix test * move notebook * fix nb path * fix kernelspec * add pmdarima dependency * skip forecasting notebook on py 3.6 * remove commented out line * skip explanation * add reason kw arg name * lintfix * fix case for vision, text * fix syntax error * fix python version comparison since it doesn't work with <= --------- Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: John Wang <t-wangjohn@microsoft.com>
2023-08-23 06:46:08 +03:00
"responsibleaidashboard-multiclass-dnn-model-debugging",
"responsibleaidashboard-orange-juice-forecasting"
];
const visionFileNames = [
"responsibleaidashboard-fridge-image-classification-model-debugging",
"responsibleaidashboard-fridge-multilabel-image-classification-model-debugging",
"responsibleaidashboard-fridge-object-detection-model-debugging"
];
const textFileNames = [
"responsibleaidashboard-DBPedia-text-classification-model-debugging",
"responsibleaidashboard-blbooksgenre-binary-text-classification-model-debugging",
"responsibleaidashboard-covid-event-multilabel-text-classification-model-debugging"
];
const ignoredFiles = [
"responsibleaidashboard-question-answering-model-debugging",
"responsibleaidashboard-openai-model-debugging"
];
const fileNames = tabularFileNames
.concat(visionFileNames)
.concat(textFileNames);
2022-09-20 08:36:03 +03:00
const notebookHostReg = /^ResponsibleAI started at (http:\/\/localhost:\d+)$/m;
const serveHostReg = /Web Development Server is listening at\s+(.*)$/m;
pin responsibleai text and vision packages to 0.30.0 (#2387) * pin responsibleai text and vision packages to 0.30.0 Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * add notebook-text pytorch restrictions similar to vision notebooks Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * add restrictions to ci e2e notebooks text vision Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * remove special case for non-macos by python versions for pytorch installation Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * add --no-cache-dir to solve hash issue with tensorflow Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * double e2e notebooks timeout Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * try setting pins like in the last successful run of notebook e2e text vision Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * remove double timeout Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * help dependency resolver by restricting mlflow version Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * special case for mlflow in py37 Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * some more attempts at fixing the resolution issues Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * remove pins Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * add 20 minutes to the timeout since tests hit the timeout frequently Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * downgrade gevent to 22.10.2 Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * adjust ci e2e notebooks text vision pytorch version Signed-off-by: Roman Lutz <romanlutz13@gmail.com> * remove gevent downgrade Signed-off-by: Roman Lutz <romanlutz13@gmail.com> --------- Signed-off-by: Roman Lutz <romanlutz13@gmail.com>
2023-10-17 01:53:54 +03:00
const timeout = 4800;
/**
*
* @param {string} notebook
* @returns {string}
*/
function getDirForNotebook(notebook) {
if (notebook.endsWith(".py")) {
notebook = notebook.replace(".py", "");
}
if (visionFileNames.includes(notebook)) {
return visionDir;
} else if (textFileNames.includes(notebook)) {
return textDir;
} else if (tabularFileNames.includes(notebook)) {
return tabularDir;
} else {
throw new Error(`Notebook ${notebook} not found.`);
}
}
function getFilesFromNotebookDirs() {
return fs
.readdirSync(tabularDir)
.concat(fs.readdirSync(visionDir))
.concat(fs.readdirSync(textDir));
}
2022-09-20 08:36:03 +03:00
/**
*
* @param {string} host
* @returns {Promise<string>}
*/
async function serve(host) {
console.log(`Running nx serve`);
const timer = setTimeout(() => {
throw new Error(`serve timeout.`);
}, timeout * 1000);
const nbProcess = spawn("node", [nxPath, "serve", "widget"], {
cwd: path.join(__dirname, ".."),
env: {
NX_based_url: host
}
});
nbProcess.on("exit", () => {
throw new Error(`Failed to run serve`);
});
return new Promise((resolve) => {
let stdout = "";
const handleOutput = (data) => {
const message = data.toString();
stdout += message;
console.log(message);
if (serveHostReg.test(stdout)) {
clearTimeout(timer);
resolve(serveHostReg.exec(stdout)[1]);
}
};
nbProcess.stdout.on("data", handleOutput);
nbProcess.stderr.on("data", handleOutput);
nbProcess.stdout.on("error", (error) => {
throw error;
});
});
}
/**
*
* @param {string} name
* @returns {Promise<string>}
*/
async function runNotebook(name) {
console.log(`Running ${name}`);
const timer = setTimeout(() => {
throw new Error(`${name} timeout.`);
}, timeout * 1000);
const dir = getDirForNotebook(name);
const nbProcess = spawn("python", ["-i", path.join(dir, name)]);
nbProcess.on("exit", () => {
throw new Error(`Failed to run notebook ${name}`);
});
return new Promise((resolve) => {
let stdout = "";
const handleOutput = (data) => {
const message = data.toString();
stdout += message;
console.log(message);
2022-09-20 08:36:03 +03:00
if (notebookHostReg.test(stdout)) {
clearTimeout(timer);
2022-09-20 08:36:03 +03:00
resolve(notebookHostReg.exec(stdout)[1]);
}
};
nbProcess.stdout.on("data", handleOutput);
nbProcess.stderr.on("data", handleOutput);
nbProcess.stdout.on("error", (error) => {
throw error;
});
});
}
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
function addFlightsInFile(path, flights) {
if (!fs.existsSync(path)) {
throw new Error(`${path} does not exist.`);
}
let content = fs.readFileSync(path, { encoding: "utf-8" });
let startIndex = 0;
const dashboardConstructorCall = "ResponsibleAIDashboard(";
while (startIndex < content.length) {
startIndex = content.indexOf(dashboardConstructorCall, startIndex);
if (startIndex === -1) {
break;
}
let dashboardArgsIndex = startIndex + dashboardConstructorCall.length;
let parenthesesBalance = 1;
while (parenthesesBalance > 0) {
if (content.at(dashboardArgsIndex) === "(") {
parenthesesBalance += 1;
} else if (content.at(dashboardArgsIndex) === ")") {
parenthesesBalance -= 1;
}
dashboardArgsIndex += 1;
}
content =
content.slice(0, dashboardArgsIndex - 1) +
`, feature_flights="${flights.split(",").join("&")}")` +
content.slice(dashboardArgsIndex);
startIndex = dashboardArgsIndex + 1;
}
console.log(`writing notebook with flights to ${path}`);
fs.writeFileSync(path, content, { encoding: "utf-8" });
}
2022-02-10 02:00:48 +03:00
function checkIfAllNotebooksHaveTests() {
console.log(`Checking if all notebooks under ${baseDir} have tests`);
const files = getFilesFromNotebookDirs()
2022-02-10 02:00:48 +03:00
.filter((f) => f.startsWith(filePrefix) && f.endsWith(".ipynb"))
.map((f) => f.replace(".ipynb", ""))
.filter((f) => !ignoredFiles.includes(f));
2022-02-10 02:00:48 +03:00
const allNotebooksHaveTests = _.isEqual(_.sortBy(files), _.sortBy(fileNames));
if (!allNotebooksHaveTests) {
throw new Error(
`Some of the notebooks don't have tests. If a new notebook is added, Please add tests.`
2022-02-10 02:00:48 +03:00
);
}
console.log(`All notebooks have tests.`);
}
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
function convertNotebooks(notebook, flights) {
console.log("Converting notebooks");
for (var fileName of fileNames) {
if (notebook && fileName !== notebook) {
console.log(`Skipping ${fileName}. Looking for ${notebook} only.`);
continue;
}
const dir = getDirForNotebook(fileName);
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
if (flights) {
// flights were passed (not just -f without flights arg)
console.log(
`Converting notebook ${fileName} with flights ${flights.toString()}\r\n`
);
} else {
// no flights were passed
console.log(`Converting notebook ${fileName} with no flights.\r\n`);
}
const { status, stderr } = spawnSync(
"jupyter",
["nbconvert", path.join(dir, `${fileName}.ipynb`), "--to", "script"],
{
stdio: "inherit"
}
);
if (status) {
throw new Error(`Failed to convert notebook:\r\n\r\n${stderr}`);
}
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
if (flights) {
addFlightsInFile(path.join(dir, `${fileName}.py`), flights);
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
}
console.log(`Converted notebook ${fileName}\r\n`);
}
}
/**
* @typedef {Object} Host
* @property {string} file
* @property {string} host
*/
/**
* @returns {Host[]}
*/
2022-09-20 08:36:03 +03:00
async function runNotebooks(selectedNotebook, host) {
let files = getFilesFromNotebookDirs().filter(
(f) => f.startsWith(filePrefix) && f.endsWith(".py")
);
console.log("Available notebooks:");
files.forEach((file) => {
console.log(` ${file}`);
});
if (selectedNotebook) {
const nbFileName = `${selectedNotebook}.py`;
if (host) {
files = [nbFileName];
} else {
console.log(`Should only run ${nbFileName}`);
files = files.filter((f) => f === nbFileName);
if (files.length === 0) {
console.log(`Could not find any matching notebook for ${nbFileName}.`);
exit(1);
}
}
}
const hosts = [];
for (const f of files) {
2022-09-20 08:36:03 +03:00
host = host || (await runNotebook(f));
hosts.push({ file: f, host: host });
console.log(`file: ${f}, host: ${host}`);
}
return hosts;
}
/**
*
* @param {Host[]} hosts
*/
function writeCypressSettings(hosts) {
fs.writeFileSync(
path.join(__dirname, "../apps/widget-e2e/cypress.env.json"),
JSON.stringify({
hosts
})
);
}
2022-09-20 08:36:03 +03:00
function e2e(watch, selectedNotebook, flights, host) {
console.log(`Running e2e for notebook ${selectedNotebook}`);
let notebookArgs = [];
if (selectedNotebook) {
// remove prefix "responsibleaidashboard"
// remove dashes and make camel case
let notebookKey = selectedNotebook.substring(
"responsibleaidashboard".length,
selectedNotebook.length
);
notebookKey = notebookKey
.split("-")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join("");
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
if (flights) {
// append flights (if any) with first letter capitalized
notebookKey =
notebookKey +
flights
.split(",")
.map((flight) => flight.charAt(0).toUpperCase() + flight.slice(1))
.join("");
}
console.log(
`Determined notebook key ${notebookKey} for notebook ${selectedNotebook}.`
);
notebookArgs = ["--spec", `**/responsibleaitoolbox${notebookKey}/**`];
}
const { status, stderr } = spawnSync(
"node",
[
nxPath,
"e2e",
"widget-e2e",
...notebookArgs,
watch ? "--watch" : undefined
],
{
stdio: "inherit",
cwd: path.join(__dirname, "..")
}
);
if (status) {
throw new Error(`Failed to run e2e:\r\n\r\n${stderr}`);
}
console.log("e2e finished\r\n");
}
async function main() {
commander
.option("-w, --watch", "Watch mode")
.option("--skipgen", "Skip notebook generation")
2022-09-20 08:36:03 +03:00
.option(
"--host [host]",
"Skip notebook running and use host provided to run e2e: use full url 'http://localhost:5000' or port number"
2022-09-20 08:36:03 +03:00
)
.option("-n, --notebook [notebook]", "Run specific notebook")
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
.option(
"-f, --flights [flights]",
"Use flights separated by comma (no whitespace). Not specifying flights means that no flights are used."
)
.parse(process.argv)
.outputHelp();
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
const skipgen = commander.opts().skipgen;
2022-09-20 08:36:03 +03:00
const watch = commander.opts().watch;
let host = commander.opts().host;
if (host && !isNaN(parseInt(host))) {
host = `http://localhost:${host}`;
}
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
const notebook = commander.opts().notebook;
2022-09-20 08:36:03 +03:00
if (host && !notebook) {
throw new Error("Notebook is required when host is specified.");
}
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
let flights = commander.opts().flights;
console.log("Checking flights: " + flights);
if (flights?.toString() === "true") {
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
// -f passed without arguments
flights = undefined;
console.log("setting flights to undefined!!!");
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
}
2022-02-10 02:00:48 +03:00
checkIfAllNotebooksHaveTests();
2022-09-20 08:36:03 +03:00
if (!skipgen && !host) {
Add e2e tests for new model overview experience (part 1) (#1467) * execute e2e tests even with flighted versions of dashboard * rename model stats to model overview, add v1 and v2 for new experience * basic test harness for individual notebook execution and flighted notebook execution, more ID tags added to model overview component * more ids in model overview * Update postbuild with changes in main (#1451) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * Fix TypeError: Cannot read properties of undefined (reading 'treatAsCategorical')" (#1452) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * more update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> * remove randomness from notebooks * small fixes * lots of new IDs and tests * make first set of tests work for first dataset * Update predicted class value to uneditable text in counterfactual panel (#1458) * fix error on machines with pyspark installed where passed dataframe is not spark pandas (#1415) * add postbuild branch trigger (#1417) * Fix causal UI strings according to classification/regression tasks (#1419) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix description for model overview (#1425) * fix description for model overview * keep new description for new model overview * fix failing to create error report when filter_features is empty list (#1421) * filter out missing values from what if dropdown to prevent explanation dashboard from crashing (#1418) * Remove |Set Value| blurb in case it is not availble in counterfactual panel (#1426) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add y-axis description to counterfactual feature importance chart (#1423) Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * Add the user class name to causal UI strings (#1422) * Fix causal UI strings according to classification/regression tasks Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix lint error Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix UI test Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add the user class name to causal UI strings Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> * fix math.min / max for array size more than 10^7 (#1427) Signed-off-by: Ke Xu <xuke@microsoft.com> * upgrade pytest and lightgbm to try to fix random pytest segfault test failures (#1424) s * fix flaky notebook causing build failures by adding retry logic (#1431) * Upper bound SciKit-Learn to address freeze in causal (#1432) <!--- Provide a general summary of your changes in the Title above --> ## Description Replaces #1429 to address #1430 . Causal analysis is getting stuck with the latest release of SciKit-Learn. This contains: - Test case which gets stuck with SciKit-Learn 1.1.0 - Upper bound on SciKit-Learn in `requirements.txt` ## Checklist <!--- Make sure to satisfy all the criteria listed below. --> - [x] I have added screenshots above for all UI changes. - [x] Documentation was updated if it was needed. - [x] New tests were added or changes were manually verified. Signed-off-by: Richard Edgar <riedgar@microsoft.com> * fix dependency chart axis updating with incorrect values in explanation dashboard (#1437) * fix codecov and widget test screenshot uploads (#1428) * release raiwidgets and responsibleai v0.18.2 (#1439) * fix (#1441) Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix cohort name conflict and not run few tests for AML (#1442) * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Few e2e tests changes to accommodate AML static tests (#1445) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Fix locators logic for string features - data explorer and model statistics components (#1446) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * lintfix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * fix Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * Add more unittests RAI dashboard input class (#1448) * Add unit tests for ResponsibleAIDashboardInput Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Add more tests Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Fix imports Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Address code review comments Signed-off-by: Gaurav Gupta <gaugup@microsoft.com> * Update the way to get the length of elements obtained in e2e tests (#1450) * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * skip what-if create tests for AML Signed-off-by: vinutha karanth <vinutha.karanth@gmail.com> * update cf predicted class to non-editable text Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Roman Lutz <romanlutz13@gmail.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> * document e2e-widget options in CONTRIBUTING.md and flightCombinations in e2e-widget.js * lintfix * fix torch bytetensor input type * torch manual seed instead of set_rng_state * modularize e2e-widget script and propagate changes into github actions workflow, remove postbuild triggers, split pipeline into two * fix pipeline naming * remove commas * remove erroneous comma * single quotes * rename folder * CensusClassificationModelDebugging -> CensusClassificationModelAssessment * ignore csv files * clean up remaining renaming operations from debugging -> assessment * update CONTRIBUTING.md, use flighting data, add adjustments for binary classification * diabetes decision making notebook updates to tests * rename test folder to match notebook name, add housing decision making test cases * add multiclass dnn model debugging test case * lintfix * merge follow-up * lintfix * notebook and test case naming: assessment -> debugging * lintfix * fix test data accessors, lintfix * fix heatmap cell test * use lodash * lintfix * delete spec files that aren't required * simplify modelAssessmentDatasets.ts using lodash * make e2e-widget.js work with empty -f arg * add error throwing back * move id inside component and remove extra div * lintfix * adjust for aria-label in regression case * add multiclass aria-label * lintfix * lintfix Co-authored-by: Ilya Matiach <ilmat@microsoft.com> Co-authored-by: Gaurav Gupta <47334368+gaugup@users.noreply.github.com> Co-authored-by: xuke444 <40614413+xuke444@users.noreply.github.com> Co-authored-by: Richard Edgar <riedgar@microsoft.com> Co-authored-by: Vinutha Karanth <vinutha.karanth@gmail.com> Co-authored-by: tongy-msft <91754176+tongyu-microsoft@users.noreply.github.com>
2022-06-24 07:51:07 +03:00
convertNotebooks(notebook, flights);
2022-09-20 08:36:03 +03:00
} else {
console.log("Skipping converting notebooks", skipgen, host);
}
if (host && watch) {
host = await serve(host);
}
2022-09-20 08:36:03 +03:00
console.log(`Running watch mode on ${host}`);
const hosts = await runNotebooks(notebook, host);
writeCypressSettings(hosts);
for (var fileName of fileNames) {
if (notebook && fileName !== notebook) {
console.log(
`Skipping e2e for ${fileName}. Looking for ${notebook} only.`
);
continue;
}
2022-09-20 08:36:03 +03:00
e2e(watch, fileName, flights, host);
}
process.exit(0);
}
function onExit() {
console.log("Existing e2e");
}
async function onExitRequested() {
process.exit();
}
main();
process.stdin.resume();
process.on("SIGINT", onExitRequested);
// catches "kill pid" (for example: nodemon restart)
process.on("SIGUSR1", onExitRequested);
process.on("SIGUSR2", onExitRequested);
process.on("exit", onExit);