SYMBOL INDEX (2933 symbols across 295 files) FILE: datalab/bigquery/__init__.py function wait_any (line 37) | def wait_any(jobs, timeout=None): function wait_all (line 51) | def wait_all(jobs, timeout=None): FILE: datalab/bigquery/_api.py class Api (line 23) | class Api(object): method __init__ (line 36) | def __init__(self, context): method project_id (line 46) | def project_id(self): method jobs_insert_load (line 50) | def jobs_insert_load(self, source, table_name, append=False, overwrite... method jobs_insert_query (line 125) | def jobs_insert_query(self, sql, code=None, imports=None, table_name=N... method jobs_query_results (line 211) | def jobs_query_results(self, job_id, project_id, page_size, timeout, s... method jobs_get (line 239) | def jobs_get(self, job_id, project_id=None): method datasets_insert (line 255) | def datasets_insert(self, dataset_name, friendly_name=None, descriptio... method datasets_delete (line 281) | def datasets_delete(self, dataset_name, delete_contents): method datasets_update (line 300) | def datasets_update(self, dataset_name, dataset_info): method datasets_get (line 311) | def datasets_get(self, dataset_name): method datasets_list (line 324) | def datasets_list(self, project_id=None, max_results=0, page_token=None): method tables_get (line 348) | def tables_get(self, table_name): method tables_list (line 361) | def tables_list(self, dataset_name, max_results=0, page_token=None): method tables_insert (line 384) | def tables_insert(self, table_name, schema=None, query=None, friendly_... method tabledata_insert_all (line 422) | def tabledata_insert_all(self, table_name, rows): method tabledata_list (line 442) | def tabledata_list(self, table_name, start_index=None, max_results=Non... method table_delete (line 465) | def table_delete(self, table_name): method table_extract (line 479) | def table_extract(self, table_name, destination, format='CSV', compres... method table_update (line 521) | def table_update(self, table_name, table_info): FILE: datalab/bigquery/_csv_options.py class CSVOptions (line 19) | class CSVOptions(object): method __init__ (line 21) | def __init__(self, delimiter=',', skip_leading_rows=0, encoding='utf-8... method delimiter (line 52) | def delimiter(self): method skip_leading_rows (line 56) | def skip_leading_rows(self): method encoding (line 60) | def encoding(self): method quote (line 64) | def quote(self): method allow_quoted_newlines (line 68) | def allow_quoted_newlines(self): method allow_jagged_rows (line 72) | def allow_jagged_rows(self): method _to_query_json (line 75) | def _to_query_json(self): FILE: datalab/bigquery/_dataset.py class Dataset (line 27) | class Dataset(object): method __init__ (line 30) | def __init__(self, name, context=None): method name (line 54) | def name(self): method description (line 59) | def description(self): method friendly_name (line 69) | def friendly_name(self): method _get_info (line 78) | def _get_info(self): method exists (line 90) | def exists(self): method delete (line 101) | def delete(self, delete_contents=False): method create (line 121) | def create(self, friendly_name=None, description=None): method update (line 143) | def update(self, friendly_name=None, description=None): method _retrieve_items (line 166) | def _retrieve_items(self, page_token, item_type): method _retrieve_tables (line 194) | def _retrieve_tables(self, page_token, _): method _retrieve_views (line 197) | def _retrieve_views(self, page_token, _): method tables (line 200) | def tables(self): method views (line 204) | def views(self): method __iter__ (line 208) | def __iter__(self): method __str__ (line 212) | def __str__(self): method __repr__ (line 220) | def __repr__(self): class Datasets (line 226) | class Datasets(object): method __init__ (line 229) | def __init__(self, project_id=None, context=None): method _retrieve_datasets (line 245) | def _retrieve_datasets(self, page_token, count): method __iter__ (line 264) | def __iter__(self): FILE: datalab/bigquery/_dialect.py class Dialect (line 17) | class Dialect(object): method __init__ (line 23) | def __init__(self, bq_dialect): method bq_dialect (line 27) | def bq_dialect(self): method set_bq_dialect (line 35) | def set_bq_dialect(self, bq_dialect): method default (line 41) | def default(): FILE: datalab/bigquery/_federated_table.py class FederatedTable (line 21) | class FederatedTable(object): method from_storage (line 24) | def from_storage(source, source_format='csv', csv_options=None, ignore... method __init__ (line 66) | def __init__(self): method schema (line 80) | def schema(self): method _to_query_json (line 83) | def _to_query_json(self): FILE: datalab/bigquery/_job.py class Job (line 25) | class Job(datalab.utils.GCPJob): method __init__ (line 29) | def __init__(self, job_id, context): method _create_api (line 38) | def _create_api(self, context): method _refresh_state (line 41) | def _refresh_state(self): method _process_job_status (line 70) | def _process_job_status(self, status): FILE: datalab/bigquery/_parser.py class Parser (line 24) | class Parser(object): method __init__ (line 27) | def __init__(self): method parse_row (line 31) | def parse_row(schema, data): method parse_timestamp (line 92) | def parse_timestamp(value): FILE: datalab/bigquery/_query.py class Query (line 30) | class Query(object): method sampling_query (line 37) | def sampling_query(sql, context, fields=None, count=5, sampling=None, ... method __init__ (line 56) | def __init__(self, sql, context=None, values=None, udfs=None, data_sou... method _repr_sql_ (line 175) | def _repr_sql_(self): method __str__ (line 183) | def __str__(self): method __repr__ (line 191) | def __repr__(self): method sql (line 200) | def sql(self): method scripts (line 205) | def scripts(self): method results (line 209) | def results(self, use_cache=True, dialect=None, billing_tier=None): method extract (line 231) | def extract(self, storage_uris, format='csv', csv_delimiter=',', csv_h... method extract_async (line 264) | def extract_async(self, storage_uris, format='csv', csv_delimiter=',',... method to_dataframe (line 303) | def to_dataframe(self, start_row=0, max_rows=None, use_cache=True, dia... method to_file (line 325) | def to_file(self, path, format='csv', csv_delimiter=',', csv_header=Tr... method to_file_async (line 353) | def to_file_async(self, path, format='csv', csv_delimiter=',', csv_hea... method sample (line 379) | def sample(self, count=5, fields=None, sampling=None, use_cache=True, ... method execute_dry_run (line 408) | def execute_dry_run(self, dialect=None, billing_tier=None): method execute_async (line 434) | def execute_async(self, table_name=None, table_mode='create', use_cach... method execute (line 496) | def execute(self, table_name=None, table_mode='create', use_cache=True... method to_view (line 531) | def to_view(self, view_name): FILE: datalab/bigquery/_query_job.py class QueryJob (line 22) | class QueryJob(_job.Job): method __init__ (line 25) | def __init__(self, job_id, table_name, sql, context): method bytes_processed (line 44) | def bytes_processed(self): method total_rows (line 49) | def total_rows(self): method cache_hit (line 54) | def cache_hit(self): method sql (line 59) | def sql(self): method wait (line 63) | def wait(self, timeout=None): method results (line 102) | def results(self): FILE: datalab/bigquery/_query_results_table.py class QueryResultsTable (line 20) | class QueryResultsTable(_table.Table): method __init__ (line 26) | def __init__(self, name, context, job, is_temporary=False): method __repr__ (line 41) | def __repr__(self): method job (line 50) | def job(self): method job_id (line 55) | def job_id(self): method sql (line 60) | def sql(self): method is_temporary (line 65) | def is_temporary(self): FILE: datalab/bigquery/_query_stats.py class QueryStats (line 20) | class QueryStats(object): method __init__ (line 25) | def __init__(self, total_bytes, is_cached): method _repr_html_ (line 29) | def _repr_html_(self): method _size_formatter (line 36) | def _size_formatter(byte_num, suf='B'): FILE: datalab/bigquery/_sampling.py class Sampling (line 20) | class Sampling(object): method __init__ (line 29) | def __init__(self): method _create_projection (line 33) | def _create_projection(fields): method default (line 44) | def default(fields=None, count=5): method sorted (line 57) | def sorted(field_name, ascending=True, fields=None, count=5): method sampling_query (line 74) | def sampling_query(sql, fields=None, count=5, sampling=None): method hashed (line 91) | def hashed(field_name, percent, fields=None, count=0): method random (line 112) | def random(percent, fields=None, count=0): FILE: datalab/bigquery/_schema.py class Schema (line 25) | class Schema(list): class Field (line 33) | class Field(object): method __init__ (line 49) | def __init__(self, name, data_type, mode='NULLABLE', description=''): method _repr_sql_ (line 55) | def _repr_sql_(self): method __eq__ (line 63) | def __eq__(self, other): method __str__ (line 68) | def __str__(self): method __repr__ (line 73) | def __repr__(self): method __getitem__ (line 77) | def __getitem__(self, item): method _from_dataframe (line 92) | def _from_dataframe(dataframe, default_type='STRING'): method from_dataframe (line 127) | def from_dataframe(dataframe, default_type='STRING'): method _get_field_entry (line 145) | def _get_field_entry(name, value): method _from_dict_record (line 164) | def _from_dict_record(data): method _from_list_record (line 179) | def _from_list_record(data): method _from_record (line 192) | def _from_record(data): method from_record (line 211) | def from_record(source): method from_data (line 230) | def from_data(source): method __init__ (line 281) | def __init__(self, definition=None): method __getitem__ (line 295) | def __getitem__(self, key): method _add_field (line 303) | def _add_field(self, name, data_type, mode='NULLABLE', description=''): method find (line 308) | def find(self, name): method _populate_fields (line 321) | def _populate_fields(self, data, prefix=''): method __str__ (line 332) | def __str__(self): method __eq__ (line 338) | def __eq__(self, other): method __ne__ (line 350) | def __ne__(self, other): FILE: datalab/bigquery/_table.py class TableMetadata (line 45) | class TableMetadata(object): method __init__ (line 48) | def __init__(self, table, info): method created_on (line 59) | def created_on(self): method description (line 65) | def description(self): method expires_on (line 70) | def expires_on(self): method friendly_name (line 78) | def friendly_name(self): method modified_on (line 83) | def modified_on(self): method rows (line 89) | def rows(self): method size (line 94) | def size(self): method refresh (line 98) | def refresh(self): class Table (line 103) | class Table(object): method __init__ (line 115) | def __init__(self, name, context=None): method name (line 139) | def name(self): method job (line 144) | def job(self): method is_temporary (line 152) | def is_temporary(self): method _load_info (line 156) | def _load_info(self): method metadata (line 165) | def metadata(self): method exists (line 176) | def exists(self): method is_listable (line 195) | def is_listable(self): method delete (line 204) | def delete(self): method create (line 220) | def create(self, schema, overwrite=False): method sample (line 248) | def sample(self, fields=None, count=5, sampling=None, use_cache=True, ... method _encode_dict_as_row (line 280) | def _encode_dict_as_row(record, column_name_map): method insert_data (line 309) | def insert_data(self, data, include_index=False, index_name=None): method _init_job_from_response (line 419) | def _init_job_from_response(self, response): method extract_async (line 426) | def extract_async(self, destination, format='csv', csv_delimiter=',', ... method extract (line 452) | def extract(self, destination, format='csv', csv_delimiter=',', csv_he... method load_async (line 472) | def load_async(self, source, mode='create', source_format='csv', csv_o... method load (line 525) | def load(self, source, mode='create', source_format='csv', csv_options... method _get_row_fetcher (line 555) | def _get_row_fetcher(self, start_row=0, max_rows=None, page_size=_DEFA... method range (line 614) | def range(self, start_row=0, max_rows=None): method to_dataframe (line 627) | def to_dataframe(self, start_row=0, max_rows=None): method to_file (line 655) | def to_file(self, destination, format='csv', csv_delimiter=',', csv_he... method to_file_async (line 680) | def to_file_async(self, destination, format='csv', csv_delimiter=',', ... method schema (line 696) | def schema(self): method update (line 712) | def update(self, friendly_name=None, description=None, expiry=None, sc... method _repr_sql_ (line 744) | def _repr_sql_(self): method __repr__ (line 752) | def __repr__(self): method __str__ (line 757) | def __str__(self): method length (line 766) | def length(self): method __iter__ (line 772) | def __iter__(self): method __getitem__ (line 777) | def __getitem__(self, item): method _convert_decorator_time (line 821) | def _convert_decorator_time(when): method snapshot (line 845) | def snapshot(self, at): method window (line 870) | def window(self, begin, end=None): method to_query (line 914) | def to_query(self, fields=None): FILE: datalab/bigquery/_udf.py class UDF (line 22) | class UDF(object): method name (line 27) | def name(self): method imports (line 31) | def imports(self): method code (line 35) | def code(self): method __init__ (line 38) | def __init__(self, inputs, outputs, name, implementation, support_code... method _build_js (line 59) | def _build_js(inputs, outputs, name, implementation, support_code): FILE: datalab/bigquery/_utils.py function parse_dataset_name (line 58) | def parse_dataset_name(name, project_id=None): function parse_table_name (line 105) | def parse_table_name(name, project_id=None, dataset_id=None): function format_query_errors (line 169) | def format_query_errors(errors): FILE: datalab/bigquery/_view.py class View (line 27) | class View(object): method __init__ (line 35) | def __init__(self, name, context=None): method __str__ (line 54) | def __str__(self): method name (line 59) | def name(self): method description (line 64) | def description(self): method friendly_name (line 69) | def friendly_name(self): method query (line 74) | def query(self): method exists (line 83) | def exists(self): method delete (line 87) | def delete(self): method create (line 91) | def create(self, query): method sample (line 112) | def sample(self, fields=None, count=5, sampling=None, use_cache=True, ... method schema (line 139) | def schema(self): method update (line 149) | def update(self, friendly_name=None, description=None, query=None): method results (line 166) | def results(self, use_cache=True, dialect=None, billing_tier=None): method execute_async (line 189) | def execute_async(self, table_name=None, table_mode='create', use_cach... method execute (line 221) | def execute(self, table_name=None, table_mode='create', use_cache=True... method _repr_sql_ (line 253) | def _repr_sql_(self): method __repr__ (line 261) | def __repr__(self): FILE: datalab/bigquery/commands/_bigquery.py function _create_create_subparser (line 38) | def _create_create_subparser(parser): function _create_delete_subparser (line 55) | def _create_delete_subparser(parser): function _create_sample_subparser (line 69) | def _create_sample_subparser(parser): function _create_udf_subparser (line 100) | def _create_udf_subparser(parser): function _create_dry_run_subparser (line 106) | def _create_dry_run_subparser(parser): function _create_execute_subparser (line 121) | def _create_execute_subparser(parser): function _create_pipeline_subparser (line 143) | def _create_pipeline_subparser(parser): function _create_table_subparser (line 171) | def _create_table_subparser(parser): function _create_schema_subparser (line 181) | def _create_schema_subparser(parser): function _create_datasets_subparser (line 189) | def _create_datasets_subparser(parser): function _create_tables_subparser (line 198) | def _create_tables_subparser(parser): function _create_extract_subparser (line 209) | def _create_extract_subparser(parser): function _create_load_subparser (line 224) | def _create_load_subparser(parser): function _get_query_argument (line 248) | def _get_query_argument(args, cell, env): function _sample_cell (line 285) | def _sample_cell(args, cell_body): function _create_cell (line 342) | def _create_cell(args, cell_body): function _delete_cell (line 378) | def _delete_cell(args, _): function _dryrun_cell (line 406) | def _dryrun_cell(args, cell_body): function _udf_cell (line 428) | def _udf_cell(args, js): function _execute_cell (line 495) | def _execute_cell(args, cell_body): function _pipeline_cell (line 516) | def _pipeline_cell(args, cell_body): function _table_line (line 551) | def _table_line(args): function _get_schema (line 574) | def _get_schema(name): function _get_table (line 592) | def _get_table(name): function _schema_line (line 615) | def _schema_line(args): function _render_table (line 636) | def _render_table(data, fields=None): function _render_list (line 641) | def _render_list(data): function _datasets_line (line 646) | def _datasets_line(args): function _tables_line (line 663) | def _tables_line(args): function _extract_line (line 691) | def _extract_line(args): function _load_cell (line 725) | def _load_cell(args, schema): function _add_command (line 770) | def _add_command(parser, subparser_fn, handler, cell_required=False, cel... function _create_bigquery_parser (line 777) | def _create_bigquery_parser(): function bigquery (line 840) | def bigquery(line, cell=None): function _dispatch_handler (line 863) | def _dispatch_handler(args, cell, parser, handler, cell_required=False, ... function _table_viewer (line 891) | def _table_viewer(table, rows_per_page=25, fields=None): function _repr_html_query (line 1007) | def _repr_html_query(query): function _repr_html_query_results_table (line 1012) | def _repr_html_query_results_table(results): function _repr_html_table (line 1016) | def _repr_html_table(results): function _repr_html_table_schema (line 1020) | def _repr_html_table_schema(schema): function _register_html_formatters (line 1049) | def _register_html_formatters(): FILE: datalab/context/_api.py class Api (line 21) | class Api(object): method __init__ (line 28) | def __init__(self, credentials): method projects_list (line 31) | def projects_list(self, max_results=0, page_token=None): method project_get (line 41) | def project_get(self, projectId): FILE: datalab/context/_context.py class Context (line 24) | class Context(object): method __init__ (line 30) | def __init__(self, project_id, credentials): method credentials (line 41) | def credentials(self): method set_credentials (line 49) | def set_credentials(self, credentials): method project_id (line 54) | def project_id(self): method set_project_id (line 65) | def set_project_id(self, project_id): method is_signed_in (line 77) | def is_signed_in(): method default (line 86) | def default(): FILE: datalab/context/_project.py class Project (line 35) | class Project(object): method __init__ (line 38) | def __init__(self, api, id, number, name): method id (line 45) | def id(self): method name (line 49) | def name(self): method number (line 53) | def number(self): method __str__ (line 56) | def __str__(self): class Projects (line 60) | class Projects(object): method __init__ (line 63) | def __init__(self, credentials=None): method _retrieve_projects (line 73) | def _retrieve_projects(self, page_token, count): method __iter__ (line 91) | def __iter__(self): method get_default_id (line 97) | def get_default_id(credentials=None): method save_default_id (line 110) | def save_default_id(project_id): FILE: datalab/context/_utils.py function _in_datalab_docker (line 40) | def _in_datalab_docker(): function get_config_dir (line 44) | def get_config_dir(): function _convert_oauth2client_creds (line 59) | def _convert_oauth2client_creds(credentials): function get_credentials (line 72) | def get_credentials(): function save_project_id (line 106) | def save_project_id(project_id): function get_project_id (line 127) | def get_project_id(): FILE: datalab/context/commands/_projects.py function projects (line 31) | def projects(line, cell=None): function _list_line (line 46) | def _list_line(args, _): function _set_line (line 55) | def _set_line(args, _): FILE: datalab/data/_csv.py class Csv (line 40) | class Csv(object): method __init__ (line 43) | def __init__(self, path, delimiter=b','): method path (line 53) | def path(self): method _read_gcs_lines (line 57) | def _read_gcs_lines(path, max_lines=None): method _read_local_lines (line 61) | def _read_local_lines(path, max_lines=None): method _is_probably_categorical (line 69) | def _is_probably_categorical(self, column): method browse (line 79) | def browse(self, max_lines=None, headers=None): method _create_federated_table (line 112) | def _create_federated_table(self, skip_header_rows): method _get_gcs_csv_row_count (line 123) | def _get_gcs_csv_row_count(self, federated_table): method sample_to (line 129) | def sample_to(self, count, skip_header_rows, strategy, target): FILE: datalab/data/_sql_module.py class SqlModule (line 29) | class SqlModule(object): method _get_sql_args (line 33) | def _get_sql_args(parser, args=None): method get_default_query_from_module (line 65) | def get_default_query_from_module(module): method get_sql_statement_with_environment (line 77) | def get_sql_statement_with_environment(item, args=None): method expand (line 110) | def expand(sql, args=None): FILE: datalab/data/_sql_statement.py class SqlStatement (line 28) | class SqlStatement(object): method __init__ (line 32) | def __init__(self, sql, module=None): method __str__ (line 42) | def __str__(self): method __repr__ (line 50) | def __repr__(self): method sql (line 59) | def sql(self): method module (line 64) | def module(self): method _find_recursive_dependencies (line 69) | def _find_recursive_dependencies(sql, values, code, resolved_vars, res... method _escape_string (line 123) | def _escape_string(s): method format (line 127) | def format(sql, args=None): method _get_tokens (line 196) | def _get_tokens(sql): method _get_dependencies (line 202) | def _get_dependencies(sql): FILE: datalab/data/_utils.py function get_default_query_from_module (line 27) | def get_default_query_from_module(module): function _next_token (line 41) | def _next_token(sql): function tokenize (line 140) | def tokenize(sql): FILE: datalab/data/commands/_sql.py function _create_sql_parser (line 38) | def _create_sql_parser(): function sql (line 93) | def sql(line, cell=None): function _date (line 119) | def _date(val, offset=None): function _resolve_table (line 180) | def _resolve_table(v, format, delta): function _make_string_formatter (line 189) | def _make_string_formatter(f, offset=None): function _make_table_formatter (line 196) | def _make_table_formatter(f, offset=None): function _make_table (line 203) | def _make_table(v): function _datestring (line 207) | def _datestring(format, offset=''): function _table (line 211) | def _table(name=None, format=None, offset=''): function _arguments (line 215) | def _arguments(code, module): function _split_cell (line 284) | def _split_cell(cell, module): function sql_cell (line 370) | def sql_cell(args, cell): FILE: datalab/kernel/__init__.py function load_ipython_extension (line 56) | def load_ipython_extension(shell): function unload_ipython_extension (line 140) | def unload_ipython_extension(shell): FILE: datalab/notebook/__init__.py function _jupyter_nbextension_paths (line 23) | def _jupyter_nbextension_paths(): FILE: datalab/notebook/static/bigquery.ts function _toggleNode (line 20) | function _toggleNode(e: any): void { function _renderSchema (line 29) | function _renderSchema(table: any, schema: any, title: string, function renderSchema (line 95) | function renderSchema(dom: any, schema: any) { FILE: datalab/notebook/static/charting.ts method constructor (line 27) | constructor(protected dom:HTMLElement, protected chartStyle:string) { method init (line 32) | init(chartModule:any):void { method addPageChangedHandler (line 42) | addPageChangedHandler(handler:Function):void { method error (line 45) | error(message:string):void { class PlotlyDriver (line 49) | class PlotlyDriver extends ChartLibraryDriver { method constructor (line 52) | constructor(dom:HTMLElement, chartStyle:string) { method requires (line 56) | requires(url: string, chartStyle:string):Array { method draw (line 60) | public draw(data:any, options:any):void { method getStaticImage (line 302) | getStaticImage(callback:Function):void { method addChartReadyHandler (line 309) | addChartReadyHandler(handler:Function):void { type IStringMap (line 314) | interface IStringMap { class GChartsDriver (line 318) | class GChartsDriver extends ChartLibraryDriver { method constructor (line 361) | constructor(dom:HTMLElement, chartStyle:string) { method requires (line 365) | requires(url: string, chartStyle:string):Array { method init (line 373) | init(chartModule:any):void { method error (line 379) | error(message:string):void { method draw (line 384) | draw(data:any, options:any):void { method getStaticImage (line 389) | getStaticImage(callback:Function):void { method addChartReadyHandler (line 395) | addChartReadyHandler(handler:Function) { method addPageChangedHandler (line 399) | addPageChangedHandler(handler:Function) { class Chart (line 406) | class Chart { method constructor (line 413) | constructor(protected driver:ChartLibraryDriver, method convertDates (line 441) | public static convertDates(data:any):void { method extend (line 463) | private static extend(base:any, update:any):void { method getCell (line 474) | private getCell() { method getRefreshHandler (line 496) | protected getRefreshHandler(useCache:boolean):Function { method addControls (line 504) | private addControls():void { method getControlSettings (line 557) | protected getControlSettings():any { method getEnvironment (line 602) | private getEnvironment():string { method refresh (line 613) | protected refresh(useCache:boolean):void { method handleNewData (line 646) | private handleNewData(env: any, error:any, response: any) { method removeStaticChart (line 687) | protected removeStaticChart():void { method addStaticChart (line 743) | private addStaticChart():void { method handleStaticChart (line 750) | private handleStaticChart(img: string) { method configureRefresh (line 771) | private configureRefresh(refreshInterval:number):void { method draw (line 778) | public draw(data:any, options:any):void { class PagedTable (line 792) | class PagedTable extends Chart { method constructor (line 796) | constructor(driver:ChartLibraryDriver, method getControlSettings (line 817) | protected getControlSettings():any { method draw (line 825) | public draw(data:any, options:any):void { method handlePageEvent (line 854) | handlePageEvent(page:number):void { function convertListToDataTable (line 863) | function convertListToDataTable(data:any):any { function _render (line 890) | function _render(driver:ChartLibraryDriver, function render (line 920) | function render(driverName:string, FILE: datalab/notebook/static/element.ts function resolve (line 25) | function resolve(cbInfo: any): void { function domReadyCallback (line 29) | function domReadyCallback(): void { function load (line 39) | function load(name: any, req: any, loadCallback: any, config: any): void { FILE: datalab/notebook/static/extern/d3.parcoords.js function getset (line 120) | function getset(obj,state,events) { function extend (line 135) | function extend(target, source) { function without (line 142) | function without(arr, item) { function compute_cluster_centroids (line 335) | function compute_cluster_centroids(d) { function compute_centroids (line 369) | function compute_centroids(row) { function compute_control_points (line 402) | function compute_control_points(centroids) { function single_curve (line 446) | function single_curve(d, ctx) { function color_path (line 463) | function color_path(d, i, ctx) { function paths (line 475) | function paths(data, ctx) { function single_path (line 488) | function single_path(d, ctx) { function path_foreground (line 498) | function path_foreground(d, i) { function path_highlight (line 502) | function path_highlight(d, i) { function flipAxisAndUpdatePCP (line 509) | function flipAxisAndUpdatePCP(dimension, i) { function rotateLabels (line 522) | function rotateLabels() { function brushUpdated (line 714) | function brushUpdated(newSelection) { function brushPredicate (line 720) | function brushPredicate(predicate) { function is_brushed (line 776) | function is_brushed(p) { function selected (line 781) | function selected() { function brushExtents (line 823) | function brushExtents() { function brushFor (line 836) | function brushFor(axis) { function brushReset (line 853) | function brushReset(dimension) { function install (line 867) | function install() { function drawStrum (line 904) | function drawStrum(strum, activePoint) { function dimensionsForPoint (line 956) | function dimensionsForPoint(p) { function onDragStart (line 984) | function onDragStart() { function onDrag (line 1011) | function onDrag() { function containmentTest (line 1023) | function containmentTest(strum, width) { function selected (line 1046) | function selected() { function removeStrum (line 1080) | function removeStrum() { function onDragEnd (line 1090) | function onDragEnd() { function brushReset (line 1109) | function brushReset(strums) { function install (line 1123) | function install() { function position (line 1281) | function position(d) { function doFrame (line 1310) | function doFrame() { FILE: datalab/notebook/static/extern/sylvester.js function Vector (line 28) | function Vector() {} function Matrix (line 330) | function Matrix() {} function Line (line 826) | function Line() {} function Plane (line 1029) | function Plane() {} FILE: datalab/notebook/static/job.ts function refresh (line 22) | function refresh(dom: any, job_name: any, job_type: any, interval: any, function render (line 48) | function render(dom: any, events: any, job_name: string, job_type: string, FILE: datalab/notebook/static/parcoords.ts function getCentroids (line 19) | function getCentroids(data: any, graph: any): any { function getActiveData (line 34) | function getActiveData(graph: any): any{ function findAxes (line 39) | function findAxes(testPt: any, cenPts: any): number { function isOnLine (line 50) | function isOnLine(startPt: any, endPt: any, testPt: any, tol: number){ function getClickedLines (line 64) | function getClickedLines(mouseClick: any, graph: any): any { function highlightLineOnClick (line 86) | function highlightLineOnClick(mouseClick: any, graph: any) { function plot (line 98) | function plot(d3: any, color_domain: number[], maximize: boolean, data: ... FILE: datalab/notebook/static/style.ts function addStyleSheet (line 29) | function addStyleSheet(url: string): void { function domReadyCallback (line 40) | function domReadyCallback(): void { function load (line 50) | function load(url: string, req: any, loadCallback: any, config: any): vo... FILE: datalab/notebook/static/visualization.ts function loadGoogleApiLoader (line 32) | function loadGoogleApiLoader(callback: any): void { function invokeVisualizationCallback (line 45) | function invokeVisualizationCallback(cb: any) { function loadVisualizationPackages (line 49) | function loadVisualizationPackages(names: any, callbacks: any): void { function load (line 67) | function load(name: any, req: any, callback: any, config: any) { FILE: datalab/stackdriver/commands/_monitoring.py function monitoring (line 27) | def monitoring(line, cell=None): function _list_metric_descriptors (line 76) | def _list_metric_descriptors(args, _): function _list_resource_descriptors (line 85) | def _list_resource_descriptors(args, _): function _list_groups (line 94) | def _list_groups(args, _): function _render_dataframe (line 103) | def _render_dataframe(dataframe): FILE: datalab/stackdriver/monitoring/_group.py class Groups (line 29) | class Groups(object): method __init__ (line 35) | def __init__(self, context=None): method list (line 45) | def list(self, pattern='*'): method as_dataframe (line 63) | def as_dataframe(self, pattern='*', max_rows=None): FILE: datalab/stackdriver/monitoring/_metric.py class MetricDescriptors (line 26) | class MetricDescriptors(object): method __init__ (line 32) | def __init__(self, filter_string=None, type_prefix=None, context=None): method list (line 47) | def list(self, pattern='*'): method as_dataframe (line 64) | def as_dataframe(self, pattern='*', max_rows=None): FILE: datalab/stackdriver/monitoring/_query.py class Query (line 23) | class Query(google.cloud.monitoring_v3.query.Query): method __init__ (line 26) | def __init__(self, method metadata (line 66) | def metadata(self): FILE: datalab/stackdriver/monitoring/_query_metadata.py class QueryMetadata (line 25) | class QueryMetadata(object): method __init__ (line 28) | def __init__(self, query): method __iter__ (line 40) | def __iter__(self): method metric_type (line 45) | def metric_type(self): method resource_types (line 50) | def resource_types(self): method as_dataframe (line 54) | def as_dataframe(self, max_rows=None): FILE: datalab/stackdriver/monitoring/_resource.py class ResourceDescriptors (line 24) | class ResourceDescriptors(object): method __init__ (line 29) | def __init__(self, filter_string=None, context=None): method list (line 41) | def list(self, pattern='*'): method as_dataframe (line 57) | def as_dataframe(self, pattern='*', max_rows=None): FILE: datalab/stackdriver/monitoring/_utils.py class _MonitoringClient (line 27) | class _MonitoringClient(object): method __init__ (line 28) | def __init__(self, context): method list_metric_descriptors (line 40) | def list_metric_descriptors(self, filter_string=None, type_prefix=None): method list_resource_descriptors (line 54) | def list_resource_descriptors(self, filter_string=None): method list_groups (line 59) | def list_groups(self): function make_client (line 64) | def make_client(context=None): FILE: datalab/storage/_api.py class Api (line 27) | class Api(object): method __init__ (line 40) | def __init__(self, context): method project_id (line 50) | def project_id(self): method buckets_insert (line 54) | def buckets_insert(self, bucket, project_id=None): method buckets_delete (line 71) | def buckets_delete(self, bucket): method buckets_get (line 83) | def buckets_get(self, bucket, projection='noAcl'): method buckets_list (line 98) | def buckets_list(self, projection='noAcl', max_results=0, page_token=N... method object_download (line 123) | def object_download(self, bucket, key, start_offset=0, byte_count=None): method object_upload (line 147) | def object_upload(self, bucket, key, content, content_type): method objects_copy (line 165) | def objects_copy(self, source_bucket, source_key, target_bucket, targe... method objects_delete (line 182) | def objects_delete(self, bucket, key): method objects_get (line 195) | def objects_get(self, bucket, key, projection='noAcl'): method objects_list (line 214) | def objects_list(self, bucket, prefix=None, delimiter=None, projection... method objects_patch (line 249) | def objects_patch(self, bucket, key, info): method _escape_key (line 265) | def _escape_key(key): method verify_permitted_to_read (line 270) | def verify_permitted_to_read(gs_path): FILE: datalab/storage/_bucket.py function parse_name (line 34) | def parse_name(name): class BucketMetadata (line 59) | class BucketMetadata(object): method __init__ (line 62) | def __init__(self, info): method created_on (line 71) | def created_on(self): method etag (line 77) | def etag(self): method name (line 82) | def name(self): class Bucket (line 87) | class Bucket(object): method __init__ (line 90) | def __init__(self, name, info=None, context=None): method name (line 108) | def name(self): method __repr__ (line 112) | def __repr__(self): method metadata (line 118) | def metadata(self): method item (line 134) | def item(self, key): method items (line 146) | def items(self, prefix=None, delimiter=None): method exists (line 160) | def exists(self): method create (line 167) | def create(self, project_id=None): method delete (line 186) | def delete(self): class Buckets (line 199) | class Buckets(object): method __init__ (line 202) | def __init__(self, project_id=None, context=None): method contains (line 218) | def contains(self, name): method create (line 238) | def create(self, name): method _retrieve_buckets (line 250) | def _retrieve_buckets(self, page_token, _): method __iter__ (line 266) | def __iter__(self): FILE: datalab/storage/_item.py class ItemMetadata (line 29) | class ItemMetadata(object): method __init__ (line 32) | def __init__(self, info): method content_type (line 41) | def content_type(self): method etag (line 46) | def etag(self): method name (line 51) | def name(self): method size (line 56) | def size(self): method updated_on (line 61) | def updated_on(self): class Item (line 67) | class Item(object): method __init__ (line 70) | def __init__(self, bucket, key, info=None, context=None): method from_url (line 90) | def from_url(url): method key (line 96) | def key(self): method uri (line 101) | def uri(self): method __repr__ (line 106) | def __repr__(self): method copy_to (line 111) | def copy_to(self, new_key, bucket=None): method exists (line 130) | def exists(self): method delete (line 139) | def delete(self): method metadata (line 152) | def metadata(self): method read_from (line 167) | def read_from(self, start_offset=0, byte_count=None): method read_lines (line 184) | def read_lines(self, max_lines=None): method write_to (line 212) | def write_to(self, content, content_type): class Items (line 227) | class Items(object): method __init__ (line 230) | def __init__(self, bucket, prefix, delimiter, context=None): method contains (line 252) | def contains(self, key): method _retrieve_items (line 272) | def _retrieve_items(self, page_token, _): method __iter__ (line 290) | def __iter__(self): FILE: datalab/storage/commands/_storage.py function _extract_storage_api_response_error (line 34) | def _extract_storage_api_response_error(message): function storage (line 55) | def storage(line, cell=None): function _parser_exit (line 137) | def _parser_exit(status=0, message=None): function _expand_list (line 144) | def _expand_list(names): function _storage_copy (line 199) | def _storage_copy(args, _): function _storage_create (line 229) | def _storage_create(args, _): function _storage_delete (line 247) | def _storage_delete(args, _): function _storage_list_buckets (line 276) | def _storage_list_buckets(project, pattern): function _storage_get_keys (line 284) | def _storage_get_keys(bucket, pattern): function _storage_get_key_names (line 289) | def _storage_get_key_names(bucket, pattern): function _storage_list_keys (line 294) | def _storage_list_keys(bucket, pattern): function _storage_list (line 304) | def _storage_list(args, _): function _get_item_contents (line 344) | def _get_item_contents(source_name): function _storage_read (line 356) | def _storage_read(args, _): function _storage_view (line 362) | def _storage_view(args, _): function _storage_write (line 377) | def _storage_write(args, _): FILE: datalab/utils/_async.py class async_ (line 26) | class async_(with_metaclass(abc.ABCMeta, object)): method __init__ (line 33) | def __init__(self, function): method _preprocess_args (line 39) | def _preprocess_args(*args): method _preprocess_kwargs (line 44) | def _preprocess_kwargs(**kwargs): method _call (line 50) | def _call(self, *args, **kwargs): method __call__ (line 53) | def __call__(self, *args, **kwargs): class async_function (line 58) | class async_function(async_): method _call (line 64) | def _call(self, *args, **kwargs): class async_method (line 69) | class async_method(async_): method _call (line 75) | def _call(self, *args, **kwargs): method __get__ (line 80) | def __get__(self, instance, owner): FILE: datalab/utils/_dataflow_job.py class DataflowJob (line 19) | class DataflowJob(_job.Job): method __init__ (line 23) | def __init__(self, runner_results): method _refresh_state (line 32) | def _refresh_state(self): FILE: datalab/utils/_gcp_job.py class GCPJob (line 21) | class GCPJob(_job.Job): method __init__ (line 25) | def __init__(self, job_id, context): method _create_api (line 38) | def _create_api(self, context): method __repr__ (line 41) | def __repr__(self): FILE: datalab/utils/_http.py class RequestException (line 39) | class RequestException(Exception): method __init__ (line 41) | def __init__(self, status, content): method __str__ (line 56) | def __str__(self): class Http (line 60) | class Http(object): method __init__ (line 74) | def __init__(self): method request (line 78) | def request(url, args=None, data=None, headers=None, method=None, FILE: datalab/utils/_iterator.py class Iterator (line 19) | class Iterator(object): method __init__ (line 22) | def __init__(self, retriever): method __iter__ (line 33) | def __iter__(self): method reset (line 46) | def reset(self): FILE: datalab/utils/_job.py class JobError (line 26) | class JobError(Exception): method __init__ (line 29) | def __init__(self, location, message, reason): method __str__ (line 34) | def __str__(self): class Job (line 38) | class Job(object): method __init__ (line 50) | def __init__(self, job_id=None, future=None): method __str__ (line 66) | def __str__(self): method id (line 70) | def id(self): method is_complete (line 79) | def is_complete(self): method failed (line 89) | def failed(self): method fatal_error (line 100) | def fatal_error(self): method errors (line 110) | def errors(self): method result (line 119) | def result(self): method start_time_utc (line 135) | def start_time_utc(self): method end_time_utc (line 140) | def end_time_utc(self): method total_time (line 145) | def total_time(self): method _refresh_state (line 151) | def _refresh_state(self): method _timeout (line 171) | def _timeout(self): method wait (line 175) | def wait(self, timeout=None): method state (line 202) | def state(self): method __repr__ (line 217) | def __repr__(self): method _wait (line 222) | def _wait(jobs, timeout, return_when): method wait_any (line 257) | def wait_any(jobs, timeout=None): method wait_all (line 270) | def wait_all(jobs, timeout=None): FILE: datalab/utils/_json_encoder.py class JSONEncoder (line 21) | class JSONEncoder(json.JSONEncoder): method default (line 24) | def default(self, obj): FILE: datalab/utils/_lambda_job.py class LambdaJob (line 21) | class LambdaJob(_job.Job): method __init__ (line 25) | def __init__(self, fn, job_id, *args, **kwargs): method __repr__ (line 35) | def __repr__(self): FILE: datalab/utils/_lru_cache.py class LRUCache (line 23) | class LRUCache(object): method __init__ (line 26) | def __init__(self, cache_size): method __getitem__ (line 37) | def __getitem__(self, key): method __delitem__ (line 59) | def __delitem__(self, key): method __setitem__ (line 69) | def __setitem__(self, key, value): method __contains__ (line 96) | def __contains__(self, key): method get (line 99) | def get(self, key, value): FILE: datalab/utils/_utils.py function print_exception_with_last_stack (line 31) | def print_exception_with_last_stack(e): function get_item (line 41) | def get_item(env, name, default=None): function compare_datetimes (line 63) | def compare_datetimes(d1, d2): function pick_unused_port (line 86) | def pick_unused_port(): function is_http_running_on (line 99) | def is_http_running_on(port): function gcs_copy_file (line 116) | def gcs_copy_file(source, dest): FILE: datalab/utils/commands/_chart.py function chart (line 29) | def chart(line, cell=None): function _chart_cell (line 52) | def _chart_cell(args, cell): FILE: datalab/utils/commands/_chart_data.py function _get_chart_data (line 36) | def _get_chart_data(line, cell_body=''): FILE: datalab/utils/commands/_commands.py class CommandParser (line 27) | class CommandParser(argparse.ArgumentParser): method __init__ (line 30) | def __init__(self, *args, **kwargs): method create (line 36) | def create(name): method exit (line 40) | def exit(self, status=0, message=None): method format_usage (line 44) | def format_usage(self): method create_args (line 49) | def create_args(line, namespace): method parse (line 66) | def parse(self, line, namespace=None): method subcommand (line 78) | def subcommand(self, name, help): FILE: datalab/utils/commands/_csv.py function csv (line 34) | def csv(line, cell=None): function _view (line 51) | def _view(args, cell): FILE: datalab/utils/commands/_extension.py function extension (line 29) | def extension(line, cell=None): function _extension (line 40) | def _extension(args, cell): FILE: datalab/utils/commands/_html.py class Html (line 24) | class Html(object): method next_id (line 33) | def next_id(): method __init__ (line 38) | def __init__(self, markup=None): method add_class (line 49) | def add_class(self, class_name): method add_dependency (line 54) | def add_dependency(self, path, name): method add_script (line 59) | def add_script(self, script): method _repr_html_ (line 64) | def _repr_html_(self): class HtmlBuilder (line 87) | class HtmlBuilder(object): method __init__ (line 91) | def __init__(self): method _render_objects (line 96) | def _render_objects(self, items, attributes=None, datatype='object'): method _render_text (line 150) | def _render_text(self, text, preformatted=False): method _render_list (line 160) | def _render_list(self, items, empty='
<empty>
'): method _to_html (line 177) | def _to_html(self): method _format (line 186) | def _format(value, nbsp=False): method render_text (line 195) | def render_text(text, preformatted=False): method render_table (line 209) | def render_table(data, headers=None): method render_chart_data (line 221) | def render_chart_data(data): method render_list (line 232) | def render_list(data): FILE: datalab/utils/commands/_job.py function html_job_status (line 34) | def html_job_status(job_name, job_type, refresh_interval, html_on_runnin... function _get_job_status (line 61) | def _get_job_status(line): FILE: datalab/utils/commands/_modules.py function pymodule (line 31) | def pymodule(line, cell=None): function _pymodule_cell (line 41) | def _pymodule_cell(args, cell): function _create_python_module (line 54) | def _create_python_module(name, code): FILE: datalab/utils/commands/_utils.py function notebook_environment (line 47) | def notebook_environment(): function get_notebook_item (line 53) | def get_notebook_item(name): function render_list (line 59) | def render_list(data): function render_dictionary (line 63) | def render_dictionary(data, headers=None): function render_text (line 73) | def render_text(text, preformatted=False): function get_field_list (line 83) | def get_field_list(fields, schema): function _get_cols (line 99) | def _get_cols(fields, schema): function _get_data_from_empty_list (line 128) | def _get_data_from_empty_list(source, fields='*', first_row=0, count=-1,... function _get_data_from_list_of_dicts (line 134) | def _get_data_from_list_of_dicts(source, fields='*', first_row=0, count=... function _get_data_from_list_of_lists (line 144) | def _get_data_from_list_of_lists(source, fields='*', first_row=0, count=... function _get_data_from_dataframe (line 155) | def _get_data_from_dataframe(source, fields='*', first_row=0, count=-1, ... function _get_data_from_table (line 176) | def _get_data_from_table(source, fields='*', first_row=0, count=-1, sche... function get_data (line 188) | def get_data(source, fields='*', env=None, first_row=0, count=-1, schema... function handle_magic_line (line 247) | def handle_magic_line(line, cell, parser, namespace=None): function expand_var (line 260) | def expand_var(v, env): function replace_vars (line 284) | def replace_vars(config, env): function parse_config (line 313) | def parse_config(config, env, as_dict=True): function validate_config (line 336) | def validate_config(config, required_keys, optional_keys=None): function validate_config_must_have (line 360) | def validate_config_must_have(config, required_keys): function validate_config_has_one_of (line 375) | def validate_config_has_one_of(config, one_of_keys): function validate_config_value (line 393) | def validate_config_value(value, possible_values): function get_data_source_index (line 415) | def get_data_source_index(name): function validate_gcs_path (line 421) | def validate_gcs_path(path, require_object): function parse_control_options (line 438) | def parse_control_options(controls, variable_defaults=None): function chart_html (line 553) | def chart_html(driver_name, chart_type, source, chart_options=None, fiel... function profile_df (line 675) | def profile_df(df): FILE: externs/ts/require/require.d.ts type RequireError (line 41) | interface RequireError extends Error { type RequireShim (line 59) | interface RequireShim { type RequireConfig (line 82) | interface RequireConfig { type RequireModule (line 216) | interface RequireModule { type RequireMap (line 228) | interface RequireMap { type Require (line 261) | interface Require { type RequireDefine (line 332) | interface RequireDefine { FILE: google/datalab/_context.py class Context (line 23) | class Context(object): method __init__ (line 29) | def __init__(self, project_id, credentials, config=None): method credentials (line 42) | def credentials(self): method set_credentials (line 50) | def set_credentials(self, credentials): method project_id (line 55) | def project_id(self): method set_project_id (line 66) | def set_project_id(self, project_id): method config (line 73) | def config(self): method set_config (line 81) | def set_config(self, config): method _is_signed_in (line 86) | def _is_signed_in(): method _get_default_config (line 95) | def _get_default_config(): method default (line 102) | def default(): FILE: google/datalab/_job.py class JobError (line 26) | class JobError(Exception): method __init__ (line 29) | def __init__(self, location, message, reason): method __str__ (line 34) | def __str__(self): class Job (line 38) | class Job(object): method __init__ (line 50) | def __init__(self, job_id=None, future=None): method __str__ (line 66) | def __str__(self): method id (line 70) | def id(self): method is_complete (line 79) | def is_complete(self): method failed (line 89) | def failed(self): method fatal_error (line 100) | def fatal_error(self): method errors (line 110) | def errors(self): method result (line 119) | def result(self): method start_time_utc (line 135) | def start_time_utc(self): method end_time_utc (line 140) | def end_time_utc(self): method total_time (line 145) | def total_time(self): method _refresh_state (line 151) | def _refresh_state(self): method _timeout (line 171) | def _timeout(self): method wait (line 175) | def wait(self, timeout=None): method state (line 202) | def state(self): method __repr__ (line 217) | def __repr__(self): method _wait (line 222) | def _wait(jobs, timeout, return_when): FILE: google/datalab/bigquery/_api.py class Api (line 23) | class Api(object): method __init__ (line 36) | def __init__(self, context): method project_id (line 45) | def project_id(self): method credentials (line 50) | def credentials(self): method bigquery_billing_tier (line 55) | def bigquery_billing_tier(self): method jobs_insert_load (line 59) | def jobs_insert_load(self, source, table_name, append=False, overwrite... method jobs_insert_query (line 134) | def jobs_insert_query(self, sql, table_name=None, append=False, method jobs_query_results (line 204) | def jobs_query_results(self, job_id, project_id, page_size, timeout, s... method jobs_get (line 232) | def jobs_get(self, job_id, project_id=None): method datasets_insert (line 248) | def datasets_insert(self, dataset_name, friendly_name=None, descriptio... method datasets_delete (line 274) | def datasets_delete(self, dataset_name, delete_contents): method datasets_update (line 293) | def datasets_update(self, dataset_name, dataset_info): method datasets_get (line 304) | def datasets_get(self, dataset_name): method datasets_list (line 317) | def datasets_list(self, project_id=None, max_results=0, page_token=None): method tables_get (line 341) | def tables_get(self, table_name): method tables_list (line 354) | def tables_list(self, dataset_name, max_results=0, page_token=None): method tables_insert (line 377) | def tables_insert(self, table_name, schema=None, query=None, friendly_... method tabledata_insert_all (line 415) | def tabledata_insert_all(self, table_name, rows): method tabledata_list (line 435) | def tabledata_list(self, table_name, start_index=None, max_results=Non... method table_delete (line 458) | def table_delete(self, table_name): method table_extract (line 473) | def table_extract(self, table_name, destination, format='CSV', compres... method table_update (line 515) | def table_update(self, table_name, table_info): FILE: google/datalab/bigquery/_csv_options.py class CSVOptions (line 19) | class CSVOptions(object): method __init__ (line 21) | def __init__(self, delimiter=',', skip_leading_rows=0, encoding='utf-8... method delimiter (line 52) | def delimiter(self): method skip_leading_rows (line 56) | def skip_leading_rows(self): method encoding (line 60) | def encoding(self): method quote (line 64) | def quote(self): method allow_quoted_newlines (line 68) | def allow_quoted_newlines(self): method allow_jagged_rows (line 72) | def allow_jagged_rows(self): method _to_query_json (line 75) | def _to_query_json(self): FILE: google/datalab/bigquery/_dataset.py class Dataset (line 27) | class Dataset(object): method __init__ (line 30) | def __init__(self, name, context=None): method name (line 54) | def name(self): method description (line 59) | def description(self): method friendly_name (line 69) | def friendly_name(self): method _get_info (line 78) | def _get_info(self): method exists (line 90) | def exists(self): method delete (line 101) | def delete(self, delete_contents=False): method create (line 121) | def create(self, friendly_name=None, description=None): method update (line 143) | def update(self, friendly_name=None, description=None): method _retrieve_items (line 166) | def _retrieve_items(self, page_token, item_type): method _retrieve_tables (line 194) | def _retrieve_tables(self, page_token, _): method _retrieve_views (line 197) | def _retrieve_views(self, page_token, _): method tables (line 200) | def tables(self): method views (line 204) | def views(self): method __iter__ (line 208) | def __iter__(self): method __str__ (line 212) | def __str__(self): method __repr__ (line 220) | def __repr__(self): class Datasets (line 226) | class Datasets(object): method __init__ (line 229) | def __init__(self, context=None): method _retrieve_datasets (line 244) | def _retrieve_datasets(self, page_token, _): method __iter__ (line 264) | def __iter__(self): FILE: google/datalab/bigquery/_external_data_source.py class ExternalDataSource (line 21) | class ExternalDataSource(object): method __init__ (line 23) | def __init__(self, source, source_format='csv', csv_options=None, igno... method schema (line 64) | def schema(self): method __repr__ (line 67) | def __repr__(self): method _to_query_json (line 70) | def _to_query_json(self): FILE: google/datalab/bigquery/_job.py class Job (line 27) | class Job(GCPJob): method __init__ (line 31) | def __init__(self, job_id, context): method _create_api (line 40) | def _create_api(self, context): method _refresh_state (line 43) | def _refresh_state(self): method _process_job_status (line 72) | def _process_job_status(self, status): FILE: google/datalab/bigquery/_parser.py class Parser (line 24) | class Parser(object): method __init__ (line 27) | def __init__(self): method parse_row (line 31) | def parse_row(schema, data): method parse_timestamp (line 92) | def parse_timestamp(value): FILE: google/datalab/bigquery/_query.py class Query (line 32) | class Query(object): method __init__ (line 38) | def __init__(self, sql, env=None, udfs=None, data_sources=None, subque... method from_view (line 93) | def from_view(view): method from_table (line 105) | def from_table(table, fields=None): method _expanded_sql (line 122) | def _expanded_sql(self, sampling=None): method _repr_sql_ (line 169) | def _repr_sql_(self): method __repr__ (line 177) | def __repr__(self): method sql (line 186) | def sql(self): method udfs (line 191) | def udfs(self): method subqueries (line 196) | def subqueries(self): method data_sources (line 201) | def data_sources(self): method dry_run (line 205) | def dry_run(self, context=None, query_params=None): method execute_async (line 230) | def execute_async(self, output_options=None, sampling=None, context=No... method execute (line 324) | def execute(self, output_options=None, sampling=None, context=None, qu... method get_query_parameters (line 342) | def get_query_parameters(config_parameters, date_time=datetime.datetim... method resolve_parameters (line 371) | def resolve_parameters(value, parameters, date_time=datetime.datetime.... method _resolve_parameters (line 394) | def _resolve_parameters(operator_param_value, merged_parameters): method _airflow_macro_formats (line 422) | def _airflow_macro_formats(date_time, macros, types_and_values): method merge_parameters (line 478) | def merge_parameters(parameters, date_time, macros, types_and_values): FILE: google/datalab/bigquery/_query_job.py class QueryJob (line 22) | class QueryJob(_job.Job): method __init__ (line 25) | def __init__(self, job_id, table_name, sql, context): method bytes_processed (line 44) | def bytes_processed(self): method total_rows (line 49) | def total_rows(self): method cache_hit (line 54) | def cache_hit(self): method sql (line 59) | def sql(self): method wait (line 63) | def wait(self, timeout=None): method result (line 101) | def result(self): FILE: google/datalab/bigquery/_query_output.py class QueryOutput (line 16) | class QueryOutput(object): method table (line 19) | def table(name=None, mode='create', use_cache=True, priority='interact... method file (line 46) | def file(path, format='csv', csv_delimiter=',', csv_header=True, compr... method dataframe (line 76) | def dataframe(start_row=0, max_rows=None, use_cache=True): method __init__ (line 91) | def __init__(self): method type (line 108) | def type(self): method table_name (line 112) | def table_name(self): method table_mode (line 116) | def table_mode(self): method use_cache (line 120) | def use_cache(self): method priority (line 124) | def priority(self): method allow_large_results (line 128) | def allow_large_results(self): method file_path (line 132) | def file_path(self): method file_format (line 136) | def file_format(self): method csv_delimiter (line 140) | def csv_delimiter(self): method csv_header (line 144) | def csv_header(self): method compress_file (line 148) | def compress_file(self): method dataframe_start_row (line 152) | def dataframe_start_row(self): method dataframe_max_rows (line 156) | def dataframe_max_rows(self): FILE: google/datalab/bigquery/_query_results_table.py class QueryResultsTable (line 20) | class QueryResultsTable(_table.Table): method __init__ (line 26) | def __init__(self, name, context, job, is_temporary=False): method __repr__ (line 41) | def __repr__(self): method insert (line 49) | def insert(self, *args, **kwargs): method job (line 53) | def job(self): method job_id (line 58) | def job_id(self): method sql (line 63) | def sql(self): method is_temporary (line 68) | def is_temporary(self): FILE: google/datalab/bigquery/_query_stats.py class QueryStats (line 20) | class QueryStats(object): method __init__ (line 25) | def __init__(self, total_bytes, is_cached): method _repr_html_ (line 29) | def _repr_html_(self): method _size_formatter (line 36) | def _size_formatter(byte_num, suf='B'): FILE: google/datalab/bigquery/_sampling.py class Sampling (line 20) | class Sampling(object): method __init__ (line 29) | def __init__(self): method _create_projection (line 33) | def _create_projection(fields): method default (line 44) | def default(fields=None, count=5): method sorted (line 57) | def sorted(field_name, ascending=True, fields=None, count=5): method hashed (line 76) | def hashed(field_name, percent, fields=None, count=0): method random (line 100) | def random(percent, fields=None, count=0): method _auto (line 122) | def _auto(method, fields, count, percent, key_field, ascending): FILE: google/datalab/bigquery/_schema.py class SchemaField (line 26) | class SchemaField(object): method __init__ (line 39) | def __init__(self, name, type, mode='NULLABLE', description=''): method _repr_sql_ (line 45) | def _repr_sql_(self): method __eq__ (line 53) | def __eq__(self, other): method __repr__ (line 58) | def __repr__(self): method __getitem__ (line 62) | def __getitem__(self, item): class Schema (line 77) | class Schema(list): method _from_dataframe (line 86) | def _from_dataframe(dataframe, default_type='STRING'): method _get_field_entry (line 120) | def _get_field_entry(name, value): method _from_dict_record (line 143) | def _from_dict_record(data): method _from_list_record (line 158) | def _from_list_record(data): method _from_record (line 171) | def _from_record(data): method from_record (line 190) | def from_record(source): method from_data (line 209) | def from_data(source): method __init__ (line 259) | def __init__(self, definition=None): method __getitem__ (line 273) | def __getitem__(self, key): method _add_field (line 281) | def _add_field(self, name, type, mode='NULLABLE', description=''): method find (line 286) | def find(self, name): method _populate_fields (line 299) | def _populate_fields(self, data, prefix=''): method __repr__ (line 310) | def __repr__(self): method __eq__ (line 314) | def __eq__(self, other): method __ne__ (line 326) | def __ne__(self, other): FILE: google/datalab/bigquery/_table.py class TableMetadata (line 42) | class TableMetadata(object): method __init__ (line 45) | def __init__(self, table, info): method created_on (line 56) | def created_on(self): method description (line 62) | def description(self): method expires_on (line 67) | def expires_on(self): method friendly_name (line 75) | def friendly_name(self): method modified_on (line 80) | def modified_on(self): method rows (line 86) | def rows(self): method size (line 91) | def size(self): method refresh (line 95) | def refresh(self): class Table (line 100) | class Table(object): method __init__ (line 115) | def __init__(self, name, context=None): method name (line 139) | def name(self): method full_name (line 144) | def full_name(self): method job (line 149) | def job(self): method is_temporary (line 157) | def is_temporary(self): method _load_info (line 161) | def _load_info(self): method metadata (line 170) | def metadata(self): method exists (line 181) | def exists(self): method is_listable (line 200) | def is_listable(self): method delete (line 209) | def delete(self): method create (line 225) | def create(self, schema, overwrite=False): method _encode_dict_as_row (line 254) | def _encode_dict_as_row(record, column_name_map): method insert (line 283) | def insert(self, data, include_index=False, index_name=None): method _init_job_from_response (line 393) | def _init_job_from_response(self, response): method extract_async (line 400) | def extract_async(self, destination, format='csv', csv_delimiter=None,... method extract (line 428) | def extract(self, destination, format='csv', csv_delimiter=None, csv_h... method load_async (line 448) | def load_async(self, source, mode='create', source_format='csv', csv_o... method load (line 501) | def load(self, source, mode='create', source_format='csv', csv_options... method _get_row_fetcher (line 531) | def _get_row_fetcher(self, start_row=0, max_rows=None, page_size=_DEFA... method range (line 590) | def range(self, start_row=0, max_rows=None): method to_dataframe (line 603) | def to_dataframe(self, start_row=0, max_rows=None): method to_file (line 637) | def to_file(self, destination, format='csv', csv_delimiter=',', csv_he... method schema (line 662) | def schema(self): method update (line 678) | def update(self, friendly_name=None, description=None, expiry=None, sc... method _repr_sql_ (line 710) | def _repr_sql_(self): method __repr__ (line 718) | def __repr__(self): method length (line 724) | def length(self): method __iter__ (line 730) | def __iter__(self): method __getitem__ (line 735) | def __getitem__(self, item): method _convert_decorator_time (line 779) | def _convert_decorator_time(when): method snapshot (line 803) | def snapshot(self, at): method window (line 828) | def window(self, begin, end=None): FILE: google/datalab/bigquery/_udf.py class UDF (line 20) | class UDF(object): method name (line 25) | def name(self): method imports (line 29) | def imports(self): method code (line 33) | def code(self): method __init__ (line 36) | def __init__(self, name, code, return_type, params=None, language='js'... method _expanded_sql (line 65) | def _expanded_sql(self): method _repr_sql_ (line 76) | def _repr_sql_(self): method __repr__ (line 79) | def __repr__(self): method _build_udf (line 83) | def _build_udf(name, code, return_type, params, language, imports): FILE: google/datalab/bigquery/_utils.py function parse_dataset_name (line 58) | def parse_dataset_name(name, project_id=None): function parse_table_name (line 105) | def parse_table_name(name, project_id=None, dataset_id=None): function format_query_errors (line 169) | def format_query_errors(errors): FILE: google/datalab/bigquery/_view.py class View (line 27) | class View(object): method __init__ (line 35) | def __init__(self, name, context=None): method name (line 55) | def name(self): method description (line 60) | def description(self): method friendly_name (line 65) | def friendly_name(self): method query (line 70) | def query(self): method exists (line 79) | def exists(self): method delete (line 83) | def delete(self): method create (line 87) | def create(self, query): method schema (line 109) | def schema(self): method update (line 119) | def update(self, friendly_name=None, description=None, query=None): method _repr_sql_ (line 136) | def _repr_sql_(self): method __repr__ (line 144) | def __repr__(self): FILE: google/datalab/bigquery/commands/_bigquery.py class BigQuerySchema (line 42) | class BigQuerySchema(object): function _create_dataset_subparser (line 109) | def _create_dataset_subparser(parser): function _create_table_subparser (line 134) | def _create_table_subparser(parser): function _create_sample_subparser (line 167) | def _create_sample_subparser(parser): function _create_udf_subparser (line 199) | def _create_udf_subparser(parser): function _create_datasource_subparser (line 207) | def _create_datasource_subparser(parser): function _create_dryrun_subparser (line 224) | def _create_dryrun_subparser(parser): function _create_query_subparser (line 234) | def _create_query_subparser(parser): function _create_execute_subparser (line 252) | def _create_execute_subparser(parser): function _create_extract_subparser (line 278) | def _create_extract_subparser(parser): function _create_load_subparser (line 302) | def _create_load_subparser(parser): function _get_query_argument (line 325) | def _get_query_argument(args, cell, env): function get_query_parameters (line 355) | def get_query_parameters(args, cell_body, date_time=datetime.datetime.no... function _sample_cell (line 385) | def _sample_cell(args, cell_body): function _dryrun_cell (line 456) | def _dryrun_cell(args, cell_body): function _udf_cell (line 480) | def _udf_cell(args, cell_body): function _datasource_cell (line 519) | def _datasource_cell(args, cell_body): function _query_cell (line 548) | def _query_cell(args, cell_body): function _execute_cell (line 576) | def _execute_cell(args, cell_body): function _get_table (line 622) | def _get_table(name): function _render_list (line 645) | def _render_list(data): function _dataset_line (line 650) | def _dataset_line(args): function _table_cell (line 683) | def _table_cell(args, cell_body): function _extract_cell (line 757) | def _extract_cell(args, cell_body): function _load_cell (line 805) | def _load_cell(args, cell_body): function _create_pipeline_subparser (line 858) | def _create_pipeline_subparser(parser): function _pipeline_cell (line 913) | def _pipeline_cell(args, cell_body): function _add_command (line 965) | def _add_command(parser, subparser_fn, handler, cell_required=False, cel... function _create_bigquery_parser (line 972) | def _create_bigquery_parser(): function bq (line 1028) | def bq(line, cell=None): function _dispatch_handler (line 1046) | def _dispatch_handler(args, cell, parser, handler, cell_required=False, ... function _table_viewer (line 1074) | def _table_viewer(table, rows_per_page=25, fields=None): function _repr_html_query (line 1189) | def _repr_html_query(query): function _repr_html_query_results_table (line 1194) | def _repr_html_query_results_table(results): function _repr_html_table (line 1198) | def _repr_html_table(results): function _repr_html_table_schema (line 1202) | def _repr_html_table_schema(schema): function _register_html_formatters (line 1230) | def _register_html_formatters(): FILE: google/datalab/commands/_datalab.py function datalab (line 30) | def datalab(line, cell=None): function _config_list_fn (line 84) | def _config_list_fn(args, cell): function _config_set_fn (line 89) | def _config_set_fn(args, cell): function _project_get_fn (line 97) | def _project_get_fn(args, cell): function _project_set_fn (line 102) | def _project_set_fn(args, cell): FILE: google/datalab/contrib/bigquery/commands/_bigquery.py function get_airflow_spec_from_config (line 21) | def get_airflow_spec_from_config(name, bq_pipeline_config): function _get_pipeline_spec_from_config (line 28) | def _get_pipeline_spec_from_config(bq_pipeline_config): function _get_load_parameters (line 76) | def _get_load_parameters(bq_pipeline_input_config, bq_pipeline_transform... function _get_execute_parameters (line 122) | def _get_execute_parameters(load_task_id, bq_pipeline_input_config, function _get_extract_parameters (line 193) | def _get_extract_parameters(execute_task_id, bq_pipeline_input_config, FILE: google/datalab/contrib/bigquery/operators/_bq_execute_operator.py class ExecuteOperator (line 18) | class ExecuteOperator(BaseOperator): method __init__ (line 23) | def __init__(self, sql, parameters=None, table=None, mode=None, data_s... method execute (line 37) | def execute(self, context): FILE: google/datalab/contrib/bigquery/operators/_bq_extract_operator.py class ExtractOperator (line 18) | class ExtractOperator(BaseOperator): method __init__ (line 23) | def __init__(self, path, table, format='csv', csv_options=None, *args,... method execute (line 30) | def execute(self, context): FILE: google/datalab/contrib/bigquery/operators/_bq_load_operator.py class LoadOperator (line 18) | class LoadOperator(BaseOperator): method __init__ (line 32) | def __init__(self, table, path, mode='append', format='csv', schema=No... method execute (line 43) | def execute(self, context): FILE: google/datalab/contrib/mlworkbench/_archive.py function extract_archive (line 27) | def extract_archive(archive_path, dest): FILE: google/datalab/contrib/mlworkbench/_local_predict.py function _tf_load_model (line 39) | def _tf_load_model(sess, model_dir): function _tf_predict (line 56) | def _tf_predict(model_dir, input_csvlines): function _download_images (line 90) | def _download_images(data, img_cols): function _get_predicton_csv_lines (line 111) | def _get_predicton_csv_lines(data, headers, images): function _get_display_data_with_images (line 138) | def _get_display_data_with_images(data, images): function get_model_schema_and_features (line 160) | def get_model_schema_and_features(model_dir): function get_prediction_results (line 175) | def get_prediction_results(model_dir_or_id, data, headers, img_cols=None, function get_probs_for_labels (line 242) | def get_probs_for_labels(labels, prediction_results): function _batch_csv_reader (line 300) | def _batch_csv_reader(csv_file, n): function _get_output_schema (line 306) | def _get_output_schema(session, output_alias_map): function _format_results (line 321) | def _format_results(output_format, output_schema, batched_results): function local_batch_predict (line 359) | def local_batch_predict(model_dir, csv_file_pattern, output_dir, output_... FILE: google/datalab/contrib/mlworkbench/_prediction_explainer.py class PredictionExplainer (line 32) | class PredictionExplainer(object): method __init__ (line 35) | def __init__(self, model_dir): method _make_text_predict_fn (line 56) | def _make_text_predict_fn(self, labels, instance, column_to_explain): method _make_image_predict_fn (line 73) | def _make_image_predict_fn(self, labels, instance, column_to_explain): method _get_unique_categories (line 92) | def _get_unique_categories(self, df): method _preprocess_data_for_tabular_explain (line 103) | def _preprocess_data_for_tabular_explain(self, df, categories): method _make_tabular_predict_fn (line 130) | def _make_tabular_predict_fn(self, labels, instance, categories): method explain_tabular (line 157) | def explain_tabular(self, trainset, labels, instance, num_features=5, ... method explain_text (line 201) | def explain_text(self, labels, instance, column_name=None, num_feature... method explain_image (line 246) | def explain_image(self, labels, instance, column_name=None, num_featur... method _image_gradients (line 301) | def _image_gradients(self, input_csvlines, label, image_column_name): method probe_image (line 334) | def probe_image(self, labels, instance, column_name=None, num_scaled_i... FILE: google/datalab/contrib/mlworkbench/_shell_process.py function _wait_and_kill (line 27) | def _wait_and_kill(pid_to_wait, pids_to_kill): function run_and_monitor (line 43) | def run_and_monitor(args, pid_to_wait, std_out_filter_fn=None, cwd=None): FILE: google/datalab/contrib/mlworkbench/commands/_ml.py function ml (line 57) | def ml(line, cell=None): function _abs_path (line 576) | def _abs_path(path): function _create_json_file (line 596) | def _create_json_file(tmpdir, data, filename): function _show_job_link (line 603) | def _show_job_link(job): function get_dataset_from_arg (line 615) | def get_dataset_from_arg(dataset_arg): function _analyze (line 626) | def _analyze(args, cell): function _transform (line 669) | def _transform(args, cell): function _train (line 730) | def _train(args, cell): function _predict (line 798) | def _predict(args, cell): function _batch_predict (line 833) | def _batch_predict(args, cell): class _TextLimeExplainerInstance (line 873) | class _TextLimeExplainerInstance(object): method __init__ (line 875) | def __init__(self, explainer, labels, args): method visualize (line 884) | def visualize(self, label_index): class _ImageLimeExplainerInstance (line 898) | class _ImageLimeExplainerInstance(object): method __init__ (line 900) | def __init__(self, explainer, labels, args): method visualize (line 911) | def visualize(self, label_index): class _ImageIgExplainerInstance (line 924) | class _ImageIgExplainerInstance(object): method __init__ (line 926) | def __init__(self, explainer, labels, args): method visualize (line 933) | def visualize(self, label_index): class _TabularLimeExplainerInstance (line 943) | class _TabularLimeExplainerInstance(object): method __init__ (line 945) | def __init__(self, explainer, labels, args): method visualize (line 962) | def visualize(self, label_index): function _explain (line 979) | def _explain(args, cell): function _tensorboard_start (line 1013) | def _tensorboard_start(args, cell): function _tensorboard_stop (line 1017) | def _tensorboard_stop(args, cell): function _tensorboard_list (line 1021) | def _tensorboard_list(args, cell): function _get_evaluation_csv_schema (line 1025) | def _get_evaluation_csv_schema(csv_file): function _evaluate_cm (line 1033) | def _evaluate_cm(args, cell): function _create_metrics (line 1052) | def _create_metrics(args): function _evaluate_accuracy (line 1068) | def _evaluate_accuracy(args, cell): function _evaluate_regression (line 1073) | def _evaluate_regression(args, cell): function _evaluate_pr (line 1099) | def _evaluate_pr(args, cell): function _evaluate_roc (line 1117) | def _evaluate_roc(args, cell): function _model_list (line 1135) | def _model_list(args, cell): function _model_delete (line 1157) | def _model_delete(args, cell): function _model_deploy (line 1169) | def _model_deploy(args, cell): function _dataset_create (line 1193) | def _dataset_create(args, cell): function _dataset_explore (line 1221) | def _dataset_explore(args, cell): FILE: google/datalab/contrib/pipeline/_pipeline.py class PipelineGenerator (line 26) | class PipelineGenerator(object): method generate_airflow_spec (line 48) | def generate_airflow_spec(name, pipeline_spec): method _get_default_args (line 71) | def _get_default_args(schedule_config, emails): method _get_datetime_expr_str (line 104) | def _get_datetime_expr_str(datetime_obj): method _get_operator_definition (line 120) | def _get_operator_definition(task_id, task_details, parameters): method _get_param_format_string (line 152) | def _get_param_format_string(param_value): method _get_dag_definition (line 159) | def _get_dag_definition(name, schedule_interval, catchup=False): method _get_dependency_definition (line 167) | def _get_dependency_definition(task_id, dependencies): method _get_operator_class_name (line 178) | def _get_operator_class_name(task_detail_type): method _get_operator_param_name_and_values (line 201) | def _get_operator_param_name_and_values(operator_class_name, task_deta... method _get_bq_execute_params (line 239) | def _get_bq_execute_params(operator_task_details): method _get_bq_extract_params (line 256) | def _get_bq_extract_params(operator_task_details): method _get_bq_load_params (line 281) | def _get_bq_load_params(operator_task_details): method _get_bucket_and_source_object (line 313) | def _get_bucket_and_source_object(gcs_path): FILE: google/datalab/contrib/pipeline/airflow/_airflow.py class Airflow (line 16) | class Airflow(object): method __init__ (line 23) | def __init__(self, gcs_dag_bucket, gcs_dag_file_path=None): method deploy (line 33) | def deploy(self, name, dag_string): FILE: google/datalab/contrib/pipeline/commands/_pipeline.py function _create_cell (line 21) | def _create_cell(args, cell_body): function _create_create_subparser (line 43) | def _create_create_subparser(parser): function _add_command (line 57) | def _add_command(parser, subparser_fn, handler, cell_required=False, function _create_pipeline_parser (line 66) | def _create_pipeline_parser(): function pipeline (line 90) | def pipeline(line, cell=None): function _dispatch_handler (line 108) | def _dispatch_handler(args, cell, parser, handler, cell_required=False, FILE: google/datalab/contrib/pipeline/composer/_api.py class Api (line 17) | class Api(object): method get_environment_details (line 24) | def get_environment_details(zone, environment): FILE: google/datalab/contrib/pipeline/composer/_composer.py class Composer (line 18) | class Composer(object): method __init__ (line 27) | def __init__(self, zone, environment): method deploy (line 38) | def deploy(self, name, dag_string): method gcs_dag_location (line 47) | def gcs_dag_location(self): FILE: google/datalab/data/_csv_file.py class CsvFile (line 40) | class CsvFile(object): method __init__ (line 43) | def __init__(self, path, delimiter=b','): method path (line 53) | def path(self): method _read_gcs_lines (line 57) | def _read_gcs_lines(path, max_lines=None): method _read_local_lines (line 61) | def _read_local_lines(path, max_lines=None): method _is_probably_categorical (line 69) | def _is_probably_categorical(self, column): method browse (line 79) | def browse(self, max_lines=None, headers=None): method _create_external_data_source (line 112) | def _create_external_data_source(self, skip_header_rows): method _get_gcs_csv_row_count (line 123) | def _get_gcs_csv_row_count(self, external_data_source): method sample_to (line 129) | def sample_to(self, count, skip_header_rows, strategy, target): FILE: google/datalab/kernel/__init__.py function load_ipython_extension (line 44) | def load_ipython_extension(shell): function unload_ipython_extension (line 125) | def unload_ipython_extension(shell): FILE: google/datalab/ml/_cloud_models.py class Models (line 24) | class Models(object): method __init__ (line 27) | def __init__(self, project_id=None): method _retrieve_models (line 39) | def _retrieve_models(self, page_token, _): method get_iterator (line 48) | def get_iterator(self): method get_model_details (line 53) | def get_model_details(self, model_name): method create (line 66) | def create(self, model_name): method delete (line 82) | def delete(self, model_name): method list (line 97) | def list(self, count=10): method describe (line 119) | def describe(self, model_name): class ModelVersions (line 129) | class ModelVersions(object): method __init__ (line 132) | def __init__(self, model_name, project_id=None): method _retrieve_versions (line 150) | def _retrieve_versions(self, page_token, _): method get_iterator (line 160) | def get_iterator(self): method get_version_details (line 166) | def get_version_details(self, version_name): method deploy (line 176) | def deploy(self, version_name, path, runtime_version=None): method delete (line 224) | def delete(self, version_name): method predict (line 236) | def predict(self, version_name, data): method describe (line 263) | def describe(self, version_name): method list (line 273) | def list(self): FILE: google/datalab/ml/_cloud_training_config.py class CloudTrainingConfig (line 24) | class CloudTrainingConfig(_CloudTrainingConfig): FILE: google/datalab/ml/_confusion_matrix.py class ConfusionMatrix (line 27) | class ConfusionMatrix(object): method __init__ (line 30) | def __init__(self, cm, labels): method from_csv (line 41) | def from_csv(input_csv, headers=None, schema_file=None): method from_bigquery (line 80) | def from_bigquery(sql): method to_dataframe (line 115) | def to_dataframe(self): method plot (line 129) | def plot(self, figsize=None, rotation=45): FILE: google/datalab/ml/_dataset.py class CsvDataSet (line 31) | class CsvDataSet(object): method __init__ (line 34) | def __init__(self, file_pattern, schema=None, schema_file=None): method input_files (line 77) | def input_files(self): method files (line 82) | def files(self): method schema (line 91) | def schema(self): method size (line 95) | def size(self): method sample (line 105) | def sample(self, n): class BigQueryDataSet (line 148) | class BigQueryDataSet(object): method __init__ (line 151) | def __init__(self, sql=None, table=None): method query (line 168) | def query(self): method table (line 172) | def table(self): method _get_source (line 175) | def _get_source(self): method schema (line 181) | def schema(self): method size (line 188) | def size(self): method sample (line 196) | def sample(self, n): class TransformedDataSet (line 221) | class TransformedDataSet(object): method __init__ (line 224) | def __init__(self, file_pattern): method input_files (line 238) | def input_files(self): method files (line 243) | def files(self): method size (line 252) | def size(self): FILE: google/datalab/ml/_fasets.py class FacetsOverview (line 24) | class FacetsOverview(object): method _remove_nonascii (line 27) | def _remove_nonascii(self, df): method plot (line 38) | def plot(self, data): class FacetsDiveview (line 65) | class FacetsDiveview(object): method plot (line 68) | def plot(self, data, height=1000, render_large_data=False): FILE: google/datalab/ml/_feature_slice_view.py class FeatureSliceView (line 21) | class FeatureSliceView(object): method _get_lantern_format (line 24) | def _get_lantern_format(self, df): method plot (line 46) | def plot(self, data): FILE: google/datalab/ml/_job.py class Job (line 23) | class Job(datalab.Job): method __init__ (line 26) | def __init__(self, name, context=None): method _refresh_state (line 44) | def _refresh_state(self): method info (line 52) | def info(self): method describe (line 56) | def describe(self): method submit_training (line 62) | def submit_training(job_request, job_id=None): method submit_batch_prediction (line 119) | def submit_batch_prediction(job_request, job_id=None): class Jobs (line 154) | class Jobs(object): method __init__ (line 157) | def __init__(self, filter=None): method _retrieve_jobs (line 170) | def _retrieve_jobs(self, page_token, _): method get_iterator (line 179) | def get_iterator(self): method list (line 184) | def list(self, count=10): FILE: google/datalab/ml/_metrics.py class Metrics (line 25) | class Metrics(object): method __init__ (line 28) | def __init__(self, input_csv_pattern=None, headers=None, bigquery=None): method from_csv (line 56) | def from_csv(input_csv_pattern, headers=None, schema_file=None): method from_bigquery (line 84) | def from_bigquery(sql): method _get_data_from_csv_files (line 106) | def _get_data_from_csv_files(self): method _get_data_from_bigquery (line 116) | def _get_data_from_bigquery(self, queries): method accuracy (line 125) | def accuracy(self): method roc (line 180) | def roc(self, num_thresholds, target_class, probability_column=None): method precision_recall (line 282) | def precision_recall(self, num_thresholds, target_class, probability_c... method rmse (line 374) | def rmse(self): method mae (line 406) | def mae(self): method percentile_nearest (line 437) | def percentile_nearest(self, percentile): FILE: google/datalab/ml/_summary.py class Summary (line 29) | class Summary(object): method __init__ (line 32) | def __init__(self, paths): method _glob_events_files (line 44) | def _glob_events_files(self, paths, recursive): method list_events (line 64) | def list_events(self): method get_events (line 89) | def get_events(self, event_names): method plot (line 141) | def plot(self, event_names, x_axis='step'): FILE: google/datalab/ml/_tensorboard.py class TensorBoard (line 29) | class TensorBoard(object): method list (line 33) | def list(): method start (line 50) | def start(logdir): method stop (line 82) | def stop(pid): FILE: google/datalab/ml/_util.py function wait_for_long_running_operation (line 30) | def wait_for_long_running_operation(operation_full_name): function package_and_copy (line 45) | def package_and_copy(package_root_dir, setup_py, output_tar_path): function read_file_to_string (line 91) | def read_file_to_string(path): function open_local_or_gcs (line 97) | def open_local_or_gcs(path, mode): function glob_files (line 102) | def glob_files(path): FILE: google/datalab/notebook/__init__.py function _jupyter_nbextension_paths (line 23) | def _jupyter_nbextension_paths(): FILE: google/datalab/notebook/static/bigquery.ts function _toggleNode (line 20) | function _toggleNode(e: any): void { function _renderSchema (line 29) | function _renderSchema(table: any, schema: any, title: string, function renderSchema (line 95) | function renderSchema(dom: any, schema: any) { FILE: google/datalab/notebook/static/charting.ts method constructor (line 27) | constructor(protected dom:HTMLElement, protected chartStyle:string) { method init (line 32) | init(chartModule:any):void { method addPageChangedHandler (line 42) | addPageChangedHandler(handler:Function):void { method error (line 45) | error(message:string):void { class PlotlyDriver (line 49) | class PlotlyDriver extends ChartLibraryDriver { method constructor (line 52) | constructor(dom:HTMLElement, chartStyle:string) { method requires (line 56) | requires(url: string, chartStyle:string):Array { method draw (line 60) | public draw(data:any, options:any):void { method getStaticImage (line 302) | getStaticImage(callback:Function):void { method addChartReadyHandler (line 309) | addChartReadyHandler(handler:Function):void { type IStringMap (line 314) | interface IStringMap { class GChartsDriver (line 318) | class GChartsDriver extends ChartLibraryDriver { method constructor (line 361) | constructor(dom:HTMLElement, chartStyle:string) { method requires (line 365) | requires(url: string, chartStyle:string):Array { method init (line 373) | init(chartModule:any):void { method error (line 379) | error(message:string):void { method draw (line 384) | draw(data:any, options:any):void { method getStaticImage (line 389) | getStaticImage(callback:Function):void { method addChartReadyHandler (line 395) | addChartReadyHandler(handler:Function) { method addPageChangedHandler (line 399) | addPageChangedHandler(handler:Function) { class Chart (line 406) | class Chart { method constructor (line 413) | constructor(protected driver:ChartLibraryDriver, method convertDates (line 441) | public convertDates(data:any):void { method extend (line 524) | private static extend(base:any, update:any):void { method getCell (line 535) | private getCell() { method getRefreshHandler (line 557) | protected getRefreshHandler(useCache:boolean):Function { method addControls (line 565) | private addControls():void { method getControlSettings (line 618) | protected getControlSettings():any { method getEnvironment (line 663) | private getEnvironment():string { method refresh (line 674) | protected refresh(useCache:boolean):void { method handleNewData (line 707) | private handleNewData(env: any, error:any, response: any) { method removeStaticChart (line 748) | protected removeStaticChart():void { method addStaticChart (line 804) | private addStaticChart():void { method handleStaticChart (line 811) | private handleStaticChart(img: string) { method configureRefresh (line 832) | private configureRefresh(refreshInterval:number):void { method draw (line 839) | public draw(data:any, options:any):void { class PagedTable (line 853) | class PagedTable extends Chart { method constructor (line 857) | constructor(driver:ChartLibraryDriver, method getControlSettings (line 878) | protected getControlSettings():any { method draw (line 886) | public draw(data:any, options:any):void { method handlePageEvent (line 915) | handlePageEvent(page:number):void { function convertListToDataTable (line 924) | function convertListToDataTable(data:any):any { function _render (line 951) | function _render(driver:ChartLibraryDriver, function render (line 981) | function render(driverName:string, FILE: google/datalab/notebook/static/element.ts function resolve (line 25) | function resolve(cbInfo: any): void { function domReadyCallback (line 29) | function domReadyCallback(): void { function load (line 39) | function load(name: any, req: any, loadCallback: any, config: any): void { FILE: google/datalab/notebook/static/extern/d3.parcoords.js function getset (line 120) | function getset(obj,state,events) { function extend (line 135) | function extend(target, source) { function without (line 142) | function without(arr, item) { function compute_cluster_centroids (line 335) | function compute_cluster_centroids(d) { function compute_centroids (line 369) | function compute_centroids(row) { function compute_control_points (line 402) | function compute_control_points(centroids) { function single_curve (line 446) | function single_curve(d, ctx) { function color_path (line 463) | function color_path(d, i, ctx) { function paths (line 475) | function paths(data, ctx) { function single_path (line 488) | function single_path(d, ctx) { function path_foreground (line 498) | function path_foreground(d, i) { function path_highlight (line 502) | function path_highlight(d, i) { function flipAxisAndUpdatePCP (line 509) | function flipAxisAndUpdatePCP(dimension, i) { function rotateLabels (line 522) | function rotateLabels() { function brushUpdated (line 714) | function brushUpdated(newSelection) { function brushPredicate (line 720) | function brushPredicate(predicate) { function is_brushed (line 776) | function is_brushed(p) { function selected (line 781) | function selected() { function brushExtents (line 823) | function brushExtents() { function brushFor (line 836) | function brushFor(axis) { function brushReset (line 853) | function brushReset(dimension) { function install (line 867) | function install() { function drawStrum (line 904) | function drawStrum(strum, activePoint) { function dimensionsForPoint (line 956) | function dimensionsForPoint(p) { function onDragStart (line 984) | function onDragStart() { function onDrag (line 1011) | function onDrag() { function containmentTest (line 1023) | function containmentTest(strum, width) { function selected (line 1046) | function selected() { function removeStrum (line 1080) | function removeStrum() { function onDragEnd (line 1090) | function onDragEnd() { function brushReset (line 1109) | function brushReset(strums) { function install (line 1123) | function install() { function position (line 1281) | function position(d) { function doFrame (line 1310) | function doFrame() { FILE: google/datalab/notebook/static/extern/sylvester.js function Vector (line 28) | function Vector() {} function Matrix (line 330) | function Matrix() {} function Line (line 826) | function Line() {} function Plane (line 1029) | function Plane() {} FILE: google/datalab/notebook/static/job.ts function refresh (line 22) | function refresh(dom: any, job_name: any, job_type: any, interval: any, function render (line 48) | function render(dom: any, events: any, job_name: string, job_type: string, FILE: google/datalab/notebook/static/parcoords.ts function getCentroids (line 19) | function getCentroids(data: any, graph: any): any { function getActiveData (line 34) | function getActiveData(graph: any): any{ function findAxes (line 39) | function findAxes(testPt: any, cenPts: any): number { function isOnLine (line 50) | function isOnLine(startPt: any, endPt: any, testPt: any, tol: number){ function getClickedLines (line 64) | function getClickedLines(mouseClick: any, graph: any): any { function highlightLineOnClick (line 86) | function highlightLineOnClick(mouseClick: any, graph: any) { function plot (line 98) | function plot(d3: any, color_domain: number[], maximize: boolean, data: ... FILE: google/datalab/notebook/static/style.ts function addStyleSheet (line 29) | function addStyleSheet(url: string): void { function domReadyCallback (line 40) | function domReadyCallback(): void { function load (line 50) | function load(url: string, req: any, loadCallback: any, config: any): vo... FILE: google/datalab/notebook/static/visualization.ts function loadGoogleApiLoader (line 32) | function loadGoogleApiLoader(callback: any): void { function invokeVisualizationCallback (line 45) | function invokeVisualizationCallback(cb: any) { function loadVisualizationPackages (line 49) | function loadVisualizationPackages(names: any, callbacks: any): void { function load (line 67) | function load(name: any, req: any, callback: any, config: any) { FILE: google/datalab/stackdriver/commands/_monitoring.py function sd (line 28) | def sd(line, cell=None): function _create_monitoring_subparser (line 45) | def _create_monitoring_subparser(parser): function _monitoring_metrics_list (line 84) | def _monitoring_metrics_list(args, _): function _monitoring_resource_types_list (line 93) | def _monitoring_resource_types_list(args, _): function _monitoring_groups_list (line 102) | def _monitoring_groups_list(args, _): function _render_dataframe (line 111) | def _render_dataframe(dataframe): function _make_context (line 119) | def _make_context(project_id): FILE: google/datalab/stackdriver/monitoring/_group.py class Groups (line 29) | class Groups(object): method __init__ (line 35) | def __init__(self, context=None): method list (line 45) | def list(self, pattern='*'): method as_dataframe (line 63) | def as_dataframe(self, pattern='*', max_rows=None): FILE: google/datalab/stackdriver/monitoring/_metric.py class MetricDescriptors (line 26) | class MetricDescriptors(object): method __init__ (line 32) | def __init__(self, filter_string=None, type_prefix=None, context=None): method list (line 47) | def list(self, pattern='*'): method as_dataframe (line 64) | def as_dataframe(self, pattern='*', max_rows=None): FILE: google/datalab/stackdriver/monitoring/_query.py class Query (line 23) | class Query(google.cloud.monitoring_v3.query.Query): method __init__ (line 26) | def __init__(self, method metadata (line 66) | def metadata(self): FILE: google/datalab/stackdriver/monitoring/_query_metadata.py class QueryMetadata (line 25) | class QueryMetadata(object): method __init__ (line 28) | def __init__(self, query): method __iter__ (line 40) | def __iter__(self): method metric_type (line 45) | def metric_type(self): method resource_types (line 50) | def resource_types(self): method as_dataframe (line 54) | def as_dataframe(self, max_rows=None): FILE: google/datalab/stackdriver/monitoring/_resource.py class ResourceDescriptors (line 24) | class ResourceDescriptors(object): method __init__ (line 29) | def __init__(self, filter_string=None, context=None): method list (line 41) | def list(self, pattern='*'): method as_dataframe (line 57) | def as_dataframe(self, pattern='*', max_rows=None): FILE: google/datalab/stackdriver/monitoring/_utils.py class _MonitoringClient (line 27) | class _MonitoringClient(object): method __init__ (line 28) | def __init__(self, context): method list_metric_descriptors (line 40) | def list_metric_descriptors(self, filter_string=None, type_prefix=None): method list_resource_descriptors (line 54) | def list_resource_descriptors(self, filter_string=None): method list_groups (line 59) | def list_groups(self): function make_client (line 64) | def make_client(context=None): FILE: google/datalab/storage/_api.py class Api (line 27) | class Api(object): method __init__ (line 40) | def __init__(self, context): method project_id (line 50) | def project_id(self): method buckets_insert (line 54) | def buckets_insert(self, bucket, project_id=None): method buckets_delete (line 72) | def buckets_delete(self, bucket): method buckets_get (line 84) | def buckets_get(self, bucket, projection='noAcl'): method buckets_list (line 99) | def buckets_list(self, projection='noAcl', max_results=0, page_token=N... method object_download (line 124) | def object_download(self, bucket, key, start_offset=0, byte_count=None): method object_upload (line 148) | def object_upload(self, bucket, key, content, content_type): method objects_copy (line 166) | def objects_copy(self, source_bucket, source_key, target_bucket, targe... method objects_delete (line 183) | def objects_delete(self, bucket, key): method objects_get (line 196) | def objects_get(self, bucket, key, projection='noAcl'): method objects_list (line 215) | def objects_list(self, bucket, prefix=None, delimiter=None, projection... method objects_patch (line 250) | def objects_patch(self, bucket, key, info): method _escape_key (line 267) | def _escape_key(key): method verify_permitted_to_read (line 272) | def verify_permitted_to_read(gs_path): FILE: google/datalab/storage/_bucket.py function parse_name (line 34) | def parse_name(name): class BucketMetadata (line 59) | class BucketMetadata(object): method __init__ (line 62) | def __init__(self, info): method created_on (line 71) | def created_on(self): method etag (line 77) | def etag(self): method name (line 82) | def name(self): class Bucket (line 87) | class Bucket(object): method __init__ (line 90) | def __init__(self, name, info=None, context=None): method name (line 108) | def name(self): method __repr__ (line 112) | def __repr__(self): method metadata (line 118) | def metadata(self): method object (line 134) | def object(self, key): method objects (line 146) | def objects(self, prefix=None, delimiter=None): method exists (line 160) | def exists(self): method create (line 167) | def create(self, context=None): method delete (line 185) | def delete(self): class Buckets (line 198) | class Buckets(object): method __init__ (line 201) | def __init__(self, context=None): method contains (line 215) | def contains(self, name): method _retrieve_buckets (line 235) | def _retrieve_buckets(self, page_token, _): method __iter__ (line 251) | def __iter__(self): FILE: google/datalab/storage/_object.py class ObjectMetadata (line 37) | class ObjectMetadata(object): method __init__ (line 40) | def __init__(self, info): method content_type (line 49) | def content_type(self): method etag (line 54) | def etag(self): method name (line 59) | def name(self): method size (line 64) | def size(self): method updated_on (line 69) | def updated_on(self): class Object (line 75) | class Object(object): method __init__ (line 78) | def __init__(self, bucket, key, info=None, context=None): method from_url (line 98) | def from_url(url): method key (line 104) | def key(self): method uri (line 109) | def uri(self): method __repr__ (line 114) | def __repr__(self): method copy_to (line 119) | def copy_to(self, new_key, bucket=None): method exists (line 138) | def exists(self): method delete (line 147) | def delete(self, wait_for_deletion=True): method metadata (line 175) | def metadata(self): method read_stream (line 190) | def read_stream(self, start_offset=0, byte_count=None): method download (line 207) | def download(self): method read_lines (line 217) | def read_lines(self, max_lines=None): method write_stream (line 245) | def write_stream(self, content, content_type): method upload (line 259) | def upload(self, content): class Objects (line 270) | class Objects(object): method __init__ (line 273) | def __init__(self, bucket, prefix, delimiter, context=None): method contains (line 295) | def contains(self, key): method _retrieve_objects (line 315) | def _retrieve_objects(self, page_token, _): method __iter__ (line 334) | def __iter__(self): FILE: google/datalab/storage/commands/_storage.py function _extract_gcs_api_response_error (line 34) | def _extract_gcs_api_response_error(message): function gcs (line 55) | def gcs(line, cell=None): function _parser_exit (line 134) | def _parser_exit(status=0, message=None): function _expand_list (line 141) | def _expand_list(names): function _gcs_copy (line 196) | def _gcs_copy(args, _): function _gcs_create (line 226) | def _gcs_create(args, _): function _gcs_delete (line 243) | def _gcs_delete(args, _): function _make_context (line 272) | def _make_context(project_id=None): function _gcs_list_buckets (line 278) | def _gcs_list_buckets(project, pattern): function _gcs_get_keys (line 286) | def _gcs_get_keys(bucket, pattern): function _gcs_get_key_names (line 291) | def _gcs_get_key_names(bucket, pattern): function _gcs_list_keys (line 296) | def _gcs_list_keys(bucket, pattern): function _gcs_list (line 306) | def _gcs_list(args, _): function _get_object_contents (line 348) | def _get_object_contents(source_name): function _gcs_read (line 360) | def _gcs_read(args, _): function _gcs_view (line 366) | def _gcs_view(args, _): function _gcs_write (line 383) | def _gcs_write(args, _): FILE: google/datalab/utils/_async.py class async_ (line 26) | class async_(with_metaclass(abc.ABCMeta, object)): method __init__ (line 33) | def __init__(self, function): method _preprocess_args (line 39) | def _preprocess_args(*args): method _preprocess_kwargs (line 44) | def _preprocess_kwargs(**kwargs): method _call (line 50) | def _call(self, *args, **kwargs): method __call__ (line 53) | def __call__(self, *args, **kwargs): class async_function (line 58) | class async_function(async_): method _call (line 64) | def _call(self, *args, **kwargs): class async_method (line 69) | class async_method(async_): method _call (line 75) | def _call(self, *args, **kwargs): method __get__ (line 80) | def __get__(self, instance, owner): FILE: google/datalab/utils/_dataflow_job.py class DataflowJob (line 19) | class DataflowJob(_job.Job): method __init__ (line 23) | def __init__(self, runner_results): method _refresh_state (line 32) | def _refresh_state(self): FILE: google/datalab/utils/_gcp_job.py class GCPJob (line 21) | class GCPJob(_job.Job): method __init__ (line 25) | def __init__(self, job_id, context): method _create_api (line 38) | def _create_api(self, context): method __repr__ (line 41) | def __repr__(self): FILE: google/datalab/utils/_http.py class RequestException (line 39) | class RequestException(Exception): method __init__ (line 41) | def __init__(self, status, content): method __str__ (line 59) | def __str__(self): class Http (line 63) | class Http(object): method __init__ (line 77) | def __init__(self): method request (line 81) | def request(url, args=None, data=None, headers=None, method=None, FILE: google/datalab/utils/_iterator.py class Iterator (line 19) | class Iterator(object): method __init__ (line 22) | def __init__(self, retriever): method __iter__ (line 33) | def __iter__(self): method reset (line 45) | def reset(self): FILE: google/datalab/utils/_json_encoder.py class JSONEncoder (line 21) | class JSONEncoder(json.JSONEncoder): method default (line 24) | def default(self, obj): FILE: google/datalab/utils/_lambda_job.py class LambdaJob (line 21) | class LambdaJob(_job.Job): method __init__ (line 25) | def __init__(self, fn, job_id, *args, **kwargs): method __repr__ (line 35) | def __repr__(self): FILE: google/datalab/utils/_lru_cache.py class LRUCache (line 23) | class LRUCache(object): method __init__ (line 26) | def __init__(self, cache_size): method __getitem__ (line 37) | def __getitem__(self, key): method __delitem__ (line 59) | def __delitem__(self, key): method __setitem__ (line 69) | def __setitem__(self, key, value): method __contains__ (line 96) | def __contains__(self, key): method get (line 99) | def get(self, key, value): FILE: google/datalab/utils/_utils.py function print_exception_with_last_stack (line 41) | def print_exception_with_last_stack(e): function get_item (line 51) | def get_item(env, name, default=None): function compare_datetimes (line 75) | def compare_datetimes(d1, d2): function pick_unused_port (line 98) | def pick_unused_port(): function is_http_running_on (line 111) | def is_http_running_on(port): function gcs_copy_file (line 128) | def gcs_copy_file(source, dest): function _in_datalab_docker (line 150) | def _in_datalab_docker(): function get_config_dir (line 154) | def get_config_dir(): function _convert_oauth2client_creds (line 169) | def _convert_oauth2client_creds(credentials): function get_credentials (line 182) | def get_credentials(): function save_project_id (line 222) | def save_project_id(project_id): function get_default_project_id (line 243) | def get_default_project_id(): function _construct_context_for_args (line 276) | def _construct_context_for_args(args): function python_portable_string (line 300) | def python_portable_string(string, encoding='utf-8'): FILE: google/datalab/utils/commands/_chart.py function chart (line 29) | def chart(line, cell=None): function _chart_cell (line 52) | def _chart_cell(args, cell): FILE: google/datalab/utils/commands/_chart_data.py function _get_chart_data (line 35) | def _get_chart_data(line, cell_body=''): FILE: google/datalab/utils/commands/_commands.py class CommandParser (line 30) | class CommandParser(argparse.ArgumentParser): method __init__ (line 33) | def __init__(self, *args, **kwargs): method create (line 44) | def create(name): method exit (line 48) | def exit(self, status=0, message=None): method format_help (line 56) | def format_help(self): method format_usage (line 79) | def format_usage(self): method create_args (line 84) | def create_args(line, namespace): method _get_subparsers (line 101) | def _get_subparsers(self): method _get_subparser_line_args (line 115) | def _get_subparser_line_args(self, subparser_prog): method _get_subparser_cell_args (line 132) | def _get_subparser_cell_args(self, subparser_prog): method add_cell_argument (line 142) | def add_cell_argument(self, name, help, required=False): method parse (line 157) | def parse(self, line, cell, namespace=None): method subcommand (line 259) | def subcommand(self, name, help, **kwargs): FILE: google/datalab/utils/commands/_csv.py function csv (line 34) | def csv(line, cell=None): function _view (line 51) | def _view(args, cell): FILE: google/datalab/utils/commands/_html.py class Html (line 24) | class Html(object): method next_id (line 33) | def next_id(): method __init__ (line 38) | def __init__(self, markup=None): method add_class (line 49) | def add_class(self, class_name): method add_dependency (line 54) | def add_dependency(self, path, name): method add_script (line 59) | def add_script(self, script): method _repr_html_ (line 64) | def _repr_html_(self): class HtmlBuilder (line 87) | class HtmlBuilder(object): method __init__ (line 91) | def __init__(self): method _render_objects (line 96) | def _render_objects(self, items, attributes=None, datatype='object'): method _render_text (line 151) | def _render_text(self, text, preformatted=False): method _render_list (line 161) | def _render_list(self, items, empty='
<empty>
'): method _to_html (line 178) | def _to_html(self): method _format (line 187) | def _format(value, nbsp=False): method render_text (line 196) | def render_text(text, preformatted=False): method render_table (line 210) | def render_table(data, headers=None): method render_chart_data (line 222) | def render_chart_data(data): method render_list (line 233) | def render_list(data): FILE: google/datalab/utils/commands/_job.py function html_job_status (line 34) | def html_job_status(job_name, job_type, refresh_interval, html_on_runnin... function _get_job_status (line 61) | def _get_job_status(line): FILE: google/datalab/utils/commands/_utils.py function notebook_environment (line 44) | def notebook_environment(): function get_notebook_item (line 50) | def get_notebook_item(name): function render_list (line 56) | def render_list(data): function render_dictionary (line 60) | def render_dictionary(data, headers=None): function render_text (line 70) | def render_text(text, preformatted=False): function get_field_list (line 80) | def get_field_list(fields, schema): function _get_cols (line 109) | def _get_cols(fields, schema): function _get_data_from_empty_list (line 138) | def _get_data_from_empty_list(source, fields='*', first_row=0, count=-1,... function _get_data_from_list_of_dicts (line 144) | def _get_data_from_list_of_dicts(source, fields='*', first_row=0, count=... function _get_data_from_list_of_lists (line 154) | def _get_data_from_list_of_lists(source, fields='*', first_row=0, count=... function _get_data_from_dataframe (line 165) | def _get_data_from_dataframe(source, fields='*', first_row=0, count=-1, ... function _get_data_from_table (line 186) | def _get_data_from_table(source, fields='*', first_row=0, count=-1, sche... function get_data (line 198) | def get_data(source, fields='*', env=None, first_row=0, count=-1, schema... function handle_magic_line (line 250) | def handle_magic_line(line, cell, parser, namespace=None): function expand_var (line 265) | def expand_var(v, env): function replace_vars (line 289) | def replace_vars(config, env): function parse_config (line 318) | def parse_config(config, env, as_dict=True): function parse_config_for_selected_keys (line 341) | def parse_config_for_selected_keys(content, keys): function validate_config (line 396) | def validate_config(config, required_keys, optional_keys=None): function validate_config_must_have (line 421) | def validate_config_must_have(config, required_keys): function validate_config_has_one_of (line 436) | def validate_config_has_one_of(config, one_of_keys): function validate_config_value (line 454) | def validate_config_value(value, possible_values): function get_data_source_index (line 476) | def get_data_source_index(name): function validate_gcs_path (line 482) | def validate_gcs_path(path, require_object): function parse_control_options (line 499) | def parse_control_options(controls, variable_defaults=None): function chart_html (line 614) | def chart_html(driver_name, chart_type, source, chart_options=None, fiel... function profile_df (line 730) | def profile_df(df): FILE: google/datalab/utils/facets/base_feature_statistics_generator.py class BaseFeatureStatisticsGenerator (line 32) | class BaseFeatureStatisticsGenerator(BaseGenericFeatureStatisticsGenerat... method __init__ (line 35) | def __init__(self, fs_proto, datasets_proto, histogram_proto): method ProtoFromTfRecordFiles (line 39) | def ProtoFromTfRecordFiles(self, method _ParseExample (line 74) | def _ParseExample(self, example_features, example_feature_lists, entries, method _GetEntries (line 162) | def _GetEntries(self, method _GetTfRecordEntries (line 202) | def _GetTfRecordEntries(self, path, max_entries, is_sequence, FILE: google/datalab/utils/facets/base_generic_feature_statistics_generator.py class BaseGenericFeatureStatisticsGenerator (line 27) | class BaseGenericFeatureStatisticsGenerator(object): method __init__ (line 30) | def __init__(self, fs_proto, datasets_proto, histogram_proto): method ProtoFromDataFrames (line 35) | def ProtoFromDataFrames(self, dataframes): method DtypeToType (line 58) | def DtypeToType(self, dtype): method DtypeToNumberConverter (line 69) | def DtypeToNumberConverter(self, dtype): method NdarrayToEntry (line 96) | def NdarrayToEntry(self, x): method GetDatasetsProto (line 139) | def GetDatasetsProto(self, datasets, features=None): method _PopulateQuantilesHistogram (line 288) | def _PopulateQuantilesHistogram(self, hist, nums): FILE: google/datalab/utils/facets/feature_statistics_generator.py class FeatureStatisticsGenerator (line 25) | class FeatureStatisticsGenerator(BaseFeatureStatisticsGenerator): method __init__ (line 28) | def __init__(self): function ProtoFromTfRecordFiles (line 34) | def ProtoFromTfRecordFiles(files, FILE: google/datalab/utils/facets/generic_feature_statistics_generator.py class GenericFeatureStatisticsGenerator (line 25) | class GenericFeatureStatisticsGenerator(BaseGenericFeatureStatisticsGene... method __init__ (line 28) | def __init__(self): function ProtoFromDataFrames (line 34) | def ProtoFromDataFrames(dataframes): FILE: legacy_tests/_util/http_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method test_get_request_is_invoked (line 27) | def test_get_request_is_invoked(self, mock_request, mock_response): method test_post_request_is_invoked (line 36) | def test_post_request_is_invoked(self, mock_request, mock_response): method test_explicit_post_request_is_invoked (line 44) | def test_explicit_post_request_is_invoked(self, mock_request, mock_res... method test_query_string_format (line 52) | def test_query_string_format(self, mock_request, mock_response): method test_formats_json_request (line 63) | def test_formats_json_request(self, mock_request, mock_response): method test_supports_custom_content (line 75) | def test_supports_custom_content(self, mock_request, mock_response): method test_parses_json_response (line 87) | def test_parses_json_response(self, mock_request, mock_response): method test_raises_http_error (line 95) | def test_raises_http_error(self, mock_request, mock_response): method _setup_mocks (line 106) | def _setup_mocks(mock_request, mock_response, content, status=200): FILE: legacy_tests/_util/lru_cache_tests.py class TestCases (line 20) | class TestCases(unittest.TestCase): method test_cache_no_entry (line 22) | def test_cache_no_entry(self): method test_cache_lookup (line 27) | def test_cache_lookup(self): method test_cache_overflow (line 35) | def test_cache_overflow(self): FILE: legacy_tests/_util/util_tests.py class TestCases (line 21) | class TestCases(unittest.TestCase): method _get_data (line 24) | def _get_data(): method test_no_entry (line 37) | def test_no_entry(self): method test_entry (line 44) | def test_entry(self): FILE: legacy_tests/bigquery/api_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method validate (line 27) | def validate(self, mock_http_request, expected_url, expected_args=None... method test_jobs_insert_load (line 50) | def test_jobs_insert_load(self, mock_http_request): method test_jobs_insert_query (line 107) | def test_jobs_insert_query(self, mock_http_request): method test_jobs_query_results (line 160) | def test_jobs_query_results(self, mock_http_request): method test_jobs_get (line 168) | def test_jobs_get(self, mock_http_request): method test_datasets_insert (line 175) | def test_datasets_insert(self, mock_http_request): method test_datasets_delete (line 201) | def test_datasets_delete(self, mock_http_request): method test_datasets_update (line 213) | def test_datasets_update(self, mock_http_request): method test_datasets_get (line 220) | def test_datasets_get(self, mock_http_request): method test_datasets_list (line 226) | def test_datasets_list(self, mock_http_request): method test_tables_get (line 239) | def test_tables_get(self, mock_http_request): method test_tables_list (line 246) | def test_tables_list(self, mock_http_request): method test_tables_insert (line 259) | def test_tables_insert(self, mock_http_request): method test_tabledata_insertAll (line 295) | def test_tabledata_insertAll(self, mock_http_request): method test_tabledata_list (line 307) | def test_tabledata_list(self, mock_http_request): method test_table_delete (line 324) | def test_table_delete(self, mock_http_request): method test_table_extract (line 332) | def test_table_extract(self, mock_http_request): method test_table_update (line 380) | def test_table_update(self, mock_http_request): method _create_api (line 388) | def _create_api(): method _create_context (line 393) | def _create_context(): FILE: legacy_tests/bigquery/dataset_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method _check_name_parts (line 27) | def _check_name_parts(self, dataset): method test_parse_full_name (line 34) | def test_parse_full_name(self): method test_parse_local_name (line 38) | def test_parse_local_name(self): method test_parse_dict_full_name (line 42) | def test_parse_dict_full_name(self): method test_parse_dict_local_name (line 46) | def test_parse_dict_local_name(self): method test_parse_named_tuple_name (line 50) | def test_parse_named_tuple_name(self): method test_parse_tuple_full_name (line 54) | def test_parse_tuple_full_name(self): method test_parse_tuple_local (line 58) | def test_parse_tuple_local(self): method test_parse_array_full_name (line 62) | def test_parse_array_full_name(self): method test_parse_array_local (line 66) | def test_parse_array_local(self): method test_parse_invalid_name (line 70) | def test_parse_invalid_name(self): method test_dataset_exists (line 75) | def test_dataset_exists(self, mock_api_datasets_get): method test_datasets_create_fails (line 85) | def test_datasets_create_fails(self, mock_api_datasets_get, mock_api_d... method test_datasets_create_succeeds (line 95) | def test_datasets_create_succeeds(self, mock_api_datasets_get, mock_ap... method test_datasets_create_redundant (line 103) | def test_datasets_create_redundant(self, mock_api_datasets_get, mock_a... method test_datasets_delete_succeeds (line 111) | def test_datasets_delete_succeeds(self, mock_api_datasets_delete, mock... method test_datasets_delete_fails (line 119) | def test_datasets_delete_fails(self, mock_api_datasets_delete, mock_ap... method test_tables_list (line 127) | def test_tables_list(self, mock_api_tables_list): method test_datasets_list (line 148) | def test_datasets_list(self, mock_api_datasets_list, mock_dataset_get_... method test_datasets_update (line 165) | def test_datasets_update(self, mock_api_datasets_update, mock_api_data... method _create_context (line 188) | def _create_context(): method _create_dataset (line 194) | def _create_dataset(name, metadata=None): FILE: legacy_tests/bigquery/federated_table_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method _request_result (line 31) | def _request_result(): method _get_data (line 49) | def _get_data(): method _get_table_definition (line 61) | def _get_table_definition(uris, skip_rows=0): method _get_expected_request_data (line 87) | def _get_expected_request_data(sql, table_definitions): method test_external_table_query (line 105) | def test_external_table_query(self, mock_http_request): method test_external_table_query2 (line 128) | def test_external_table_query2(self, mock_http_request): method test_external_tables_query (line 149) | def test_external_tables_query(self, mock_http_request): method _create_context (line 176) | def _create_context(): FILE: legacy_tests/bigquery/jobs_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method _make_job (line 26) | def _make_job(id): method test_job_complete (line 30) | def test_job_complete(self, mock_api_jobs_get): method test_job_fatal_error (line 40) | def test_job_fatal_error(self, mock_api_jobs_get): method test_job_errors (line 61) | def test_job_errors(self, mock_api_jobs_get): method _create_context (line 91) | def _create_context(): method _create_api (line 97) | def _create_api(): FILE: legacy_tests/bigquery/parser_tests.py class TestCases (line 19) | class TestCases(unittest.TestCase): method test_repeating_data (line 21) | def test_repeating_data(self): method test_non_nested_data (line 28) | def test_non_nested_data(self): method test_parse_nested_data (line 242) | def test_parse_nested_data(self): FILE: legacy_tests/bigquery/query_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_single_result_query (line 31) | def test_single_result_query(self, mock_api_tables_get, mock_api_jobs_... method test_empty_result_query (line 55) | def test_empty_result_query(self, mock_api_tables_get, mock_api_jobs_get, method test_incomplete_result_query (line 71) | def test_incomplete_result_query(self, method test_malformed_response_raises_exception (line 88) | def test_malformed_response_raises_exception(self, mock_api_insert_que... method test_udf_expansion (line 97) | def test_udf_expansion(self): method _create_query (line 109) | def _create_query(sql=None): method _create_context (line 115) | def _create_context(): method _create_insert_done_result (line 121) | def _create_insert_done_result(): method _create_single_row_result (line 140) | def _create_single_row_result(): method _create_empty_result (line 150) | def _create_empty_result(): method _create_incomplete_result (line 157) | def _create_incomplete_result(): method _create_page_result (line 176) | def _create_page_result(page_token=None): method _create_tables_get_result (line 187) | def _create_tables_get_result(num_rows=1, schema=None): FILE: legacy_tests/bigquery/sampling_tests.py class TestCases (line 19) | class TestCases(unittest.TestCase): method test_default (line 23) | def test_default(self): method test_default_custom_count (line 27) | def test_default_custom_count(self): method test_default_custom_fields (line 31) | def test_default_custom_fields(self): method test_default_all_fields (line 35) | def test_default_all_fields(self): method test_hashed (line 39) | def test_hashed(self): method test_hashed_and_limited (line 43) | def test_hashed_and_limited(self): method test_hashed_with_fields (line 48) | def test_hashed_with_fields(self): method test_sorted_ascending (line 52) | def test_sorted_ascending(self): method test_sorted_descending (line 56) | def test_sorted_descending(self): method test_sorted_with_fields (line 60) | def test_sorted_with_fields(self): method _apply_sampling (line 64) | def _apply_sampling(self, sampling, expected_query): FILE: legacy_tests/bigquery/schema_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_schema_from_dataframe (line 26) | def test_schema_from_dataframe(self): method test_schema_from_data (line 31) | def test_schema_from_data(self): method _create_data_frame (line 104) | def _create_data_frame(): method _create_inferred_schema (line 119) | def _create_inferred_schema(extra_field=None): FILE: legacy_tests/bigquery/table_tests.py class TestCases (line 29) | class TestCases(unittest.TestCase): method _check_name_parts (line 31) | def _check_name_parts(self, table): method test_api_paths (line 40) | def test_api_paths(self): method test_parse_full_name (line 49) | def test_parse_full_name(self): method test_parse_local_name (line 53) | def test_parse_local_name(self): method test_parse_dict_full_name (line 57) | def test_parse_dict_full_name(self): method test_parse_dict_local_name (line 62) | def test_parse_dict_local_name(self): method test_parse_named_tuple_name (line 66) | def test_parse_named_tuple_name(self): method test_parse_tuple_full_name (line 71) | def test_parse_tuple_full_name(self): method test_parse_tuple_local (line 75) | def test_parse_tuple_local(self): method test_parse_array_full_name (line 79) | def test_parse_array_full_name(self): method test_parse_array_local (line 83) | def test_parse_array_local(self): method test_parse_invalid_name (line 87) | def test_parse_invalid_name(self): method test_table_metadata (line 92) | def test_table_metadata(self, mock_api_tables_get): method test_table_schema (line 108) | def test_table_schema(self, mock_api_tables): method test_table_schema_nested (line 118) | def test_table_schema_nested(self, mock_api_tables): method test_malformed_response_raises_exception (line 134) | def test_malformed_response_raises_exception(self, mock_api_tables_get): method test_dataset_list (line 145) | def test_dataset_list(self, mock_api_datasets_get, mock_api_tables_list): method test_table_list (line 160) | def test_table_list(self, mock_api_datasets_get, mock_api_tables_list): method test_view_list (line 175) | def test_view_list(self, mock_api_datasets_get, mock_api_tables_list): method test_table_list_empty (line 189) | def test_table_list_empty(self, mock_api_datasets_get, mock_api_tables... method test_table_exists (line 202) | def test_table_exists(self, mock_api_tables_get): method test_tables_create (line 213) | def test_tables_create(self, method test_insert_data_no_table (line 237) | def test_insert_data_no_table(self, method test_insert_data_missing_field (line 267) | def test_insert_data_missing_field(self, method test_insert_data_mismatched_schema (line 300) | def test_insert_data_mismatched_schema(self, method test_insert_data_dataframe (line 335) | def test_insert_data_dataframe(self, method test_insert_data_dictlist (line 371) | def test_insert_data_dictlist(self, method test_insert_data_dictlist_index (line 411) | def test_insert_data_dictlist_index(self, method test_insert_data_dictlist_named_index (line 451) | def test_insert_data_dictlist_named_index(self, method test_table_load (line 487) | def test_table_load(self, mock_api_jobs_get, mock_api_jobs_insert_load... method test_table_extract (line 502) | def test_table_extract(self, mock_api_tables_get, mock_api_jobs_get, m... method test_table_to_dataframe (line 515) | def test_table_to_dataframe(self, mock_api_tables_get, mock_api_tabled... method test_encode_dict_as_row (line 534) | def test_encode_dict_as_row(self): method test_decorators (line 539) | def test_decorators(self): method test_window_decorators (line 593) | def test_window_decorators(self): method test_table_update (line 620) | def test_table_update(self, mock_api_table_update, mock_api_tables_get): method test_table_to_query (line 640) | def test_table_to_query(self): method _create_context (line 650) | def _create_context(): method _create_table (line 656) | def _create_table(name): method _create_table_info_result (line 660) | def _create_table_info_result(ts=None): method _create_table_info_nested_schema_result (line 682) | def _create_table_info_nested_schema_result(ts=None): method _create_dataset (line 709) | def _create_dataset(dataset_id): method _create_table_list_result (line 713) | def _create_table_list_result(): method _create_table_list_empty_result (line 732) | def _create_table_list_empty_result(): method _create_data_frame (line 738) | def _create_data_frame(): method _create_inferred_schema (line 753) | def _create_inferred_schema(extra_field=None): method _create_table_with_schema (line 764) | def _create_table_with_schema(schema, name='test:testds.testTable0'): class _uuid (line 767) | class _uuid(object): method hex (line 769) | def hex(self): method _create_uuid (line 773) | def _create_uuid(): FILE: legacy_tests/bigquery/udf_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method test_sql_building (line 25) | def test_sql_building(self): method _create_udf (line 41) | def _create_udf(): method _create_context (line 49) | def _create_context(): FILE: legacy_tests/bigquery/view_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_view_repr_sql (line 26) | def test_view_repr_sql(self): method test_view_create (line 35) | def test_view_create(self, method test_view_result (line 60) | def test_view_result(self, mock_api_tables_get, mock_api_jobs_get, moc... method test_view_update (line 84) | def test_view_update(self, mock_context_default, mock_api_table_update, method _create_tables_insert_success_result (line 113) | def _create_tables_insert_success_result(): method _create_insert_done_result (line 117) | def _create_insert_done_result(): method _create_tables_get_result (line 136) | def _create_tables_get_result(num_rows=1, schema=None): method _create_single_row_result (line 147) | def _create_single_row_result(): method _create_context (line 157) | def _create_context(): FILE: legacy_tests/data/sql_tests.py class TestCases (line 21) | class TestCases(unittest.TestCase): method test_sql_tokenizer (line 23) | def test_sql_tokenizer(self): method test_zero_placeholders (line 73) | def test_zero_placeholders(self): method test_single_placeholder (line 81) | def test_single_placeholder(self): method test_multiple_placeholders (line 89) | def test_multiple_placeholders(self): method test_escaped_placeholder (line 99) | def test_escaped_placeholder(self): method test_string_escaping (line 107) | def test_string_escaping(self): method test_all_combinations (line 115) | def test_all_combinations(self): method test_missing_args (line 135) | def test_missing_args(self): method test_invalid_args (line 145) | def test_invalid_args(self): method test_nested_queries (line 155) | def test_nested_queries(self): method test_shared_nested_queries (line 182) | def test_shared_nested_queries(self): method test_circular_references (line 190) | def test_circular_references(self): method test_module_reference (line 208) | def test_module_reference(self): method test_get_sql_statement_with_environment (line 223) | def test_get_sql_statement_with_environment(self): method test_get_query_from_module (line 227) | def test_get_query_from_module(self): method test_get_sql_args (line 231) | def test_get_sql_args(self): FILE: legacy_tests/kernel/bigquery_tests.py function noop_decorator (line 24) | def noop_decorator(func): class TestCases (line 40) | class TestCases(unittest.TestCase): method test_udf_cell (line 44) | def test_udf_cell(self, mock_default_context, mock_notebook_environment): method _create_context (line 69) | def _create_context(): method test_sample_cell (line 74) | def test_sample_cell(self): method test_get_schema (line 78) | def test_get_schema(self): method test_get_table (line 82) | def test_get_table(self): method test_table_viewer (line 86) | def test_table_viewer(self): FILE: legacy_tests/kernel/chart_data_tests.py function noop_decorator (line 26) | def noop_decorator(func): class TestCases (line 37) | class TestCases(unittest.TestCase): method test_get_chart_data (line 40) | def test_get_chart_data(self, mock_get_item): FILE: legacy_tests/kernel/chart_tests.py function noop_decorator (line 24) | def noop_decorator(func): class TestCases (line 35) | class TestCases(unittest.TestCase): method test_chart_cell (line 37) | def test_chart_cell(self): method test_chart_magic (line 50) | def test_chart_magic(self): FILE: legacy_tests/kernel/commands_tests.py function noop_decorator (line 23) | def noop_decorator(func): class TestCases (line 33) | class TestCases(unittest.TestCase): method test_create_args (line 35) | def test_create_args(self): FILE: legacy_tests/kernel/html_tests.py function noop_decorator (line 23) | def noop_decorator(func): class TestCases (line 33) | class TestCases(unittest.TestCase): method test_render_table (line 35) | def test_render_table(self): method test_render_text (line 39) | def test_render_text(self): FILE: legacy_tests/kernel/module_tests.py function noop_decorator (line 26) | def noop_decorator(func): class TestCases (line 36) | class TestCases(unittest.TestCase): method test_create_python_module (line 38) | def test_create_python_module(self): method test_pymodule (line 43) | def test_pymodule(self): method test_pymodule_magic (line 49) | def test_pymodule_magic(self, mock_pymodule_cell): FILE: legacy_tests/kernel/sql_tests.py function noop_decorator (line 31) | def noop_decorator(func): class TestCases (line 41) | class TestCases(unittest.TestCase): method test_split_cell (line 46) | def test_split_cell(self): method test_arguments (line 117) | def test_arguments(self, mock_default_context): method test_date (line 162) | def test_date(self): method test_sql_cell (line 166) | def test_sql_cell(self): method _create_context (line 171) | def _create_context(): FILE: legacy_tests/kernel/storage_tests.py function noop_decorator (line 28) | def noop_decorator(func): class TestCases (line 38) | class TestCases(unittest.TestCase): method test_expand_list (line 44) | def test_expand_list(self, mock_context_default, mock_api_objects_get,... method test_storage_copy (line 96) | def test_storage_copy(self, mock_context_default, mock_api_objects_get... method test_storage_copy_magic (line 123) | def test_storage_copy_magic(self, mock_storage_copy): method test_storage_create (line 134) | def test_storage_create(self, mock_context_default, mock_api_buckets_i... method test_storage_delete (line 163) | def test_storage_delete(self, mock_context_default, mock_api_bucket_de... method test_storage_view (line 191) | def test_storage_view(self, mock_context_default): method test_storage_write (line 197) | def test_storage_write(self, mock_context_default): method _create_context (line 203) | def _create_context(): method _mock_bucket_items_return (line 209) | def _mock_bucket_items_return(context): method _mock_api_objects_get (line 229) | def _mock_api_objects_get(): method _mock_api_buckets_get (line 241) | def _mock_api_buckets_get(): FILE: legacy_tests/kernel/utils_tests.py class TestCases (line 39) | class TestCases(unittest.TestCase): method _get_expected_cols (line 42) | def _get_expected_cols(): method _timestamp (line 54) | def _timestamp(d): method _get_raw_rows (line 58) | def _get_raw_rows(): method _get_expected_rows (line 88) | def _get_expected_rows(): method _get_test_data_as_list_of_dicts (line 112) | def _get_test_data_as_list_of_dicts(): method test_get_data_from_list_of_dicts (line 133) | def test_get_data_from_list_of_dicts(self): method test_get_data_from_list_of_lists (line 140) | def test_get_data_from_list_of_lists(self): method test_get_data_from_dataframe (line 155) | def test_get_data_from_dataframe(self): method test_get_data_from_table (line 166) | def test_get_data_from_table(self, mock_context_default, mock_api_tabl... method test_get_data_from_empty_list (line 200) | def test_get_data_from_empty_list(self): method test_get_data_from_malformed_list (line 203) | def test_get_data_from_malformed_list(self): method _test_get_data (line 209) | def _test_get_data(self, test_data, cols, rows, expected_count, fn): method _create_api (line 260) | def _create_api(): method _create_context (line 265) | def _create_context(): FILE: legacy_tests/stackdriver/commands/monitoring_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_list_metric_descriptors (line 28) | def test_list_metric_descriptors(self, mock_metric_descriptors, mock_r... method test_list_resource_descriptors (line 46) | def test_list_resource_descriptors(self, mock_resource_descriptors, mo... method test_list_groups (line 63) | def test_list_groups(self, mock_groups, mock_render_dataframe): FILE: legacy_tests/stackdriver/monitoring/group_tests.py class TestCases (line 35) | class TestCases(unittest.TestCase): method setUp (line 37) | def setUp(self): method test_constructor_minimal (line 42) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 52) | def test_constructor_maximal(self): method test_list (line 60) | def test_list(self, mock_api_list_groups): method test_list_w_pattern_match (line 72) | def test_list_w_pattern_match(self, mock_api_list_groups): method test_list_caching (line 83) | def test_list_caching(self, mock_gcloud_list_groups): method test_as_dataframe (line 94) | def test_as_dataframe(self, mock_gcloud_list_groups): method test_as_dataframe_w_all_args (line 113) | def test_as_dataframe_w_all_args(self, mock_gcloud_list_groups): method _create_context (line 125) | def _create_context(project_id): method _list_groups_get_result (line 130) | def _list_groups_get_result(context): FILE: legacy_tests/stackdriver/monitoring/metric_tests.py class TestCases (line 40) | class TestCases(unittest.TestCase): method setUp (line 42) | def setUp(self): method test_constructor_minimal (line 47) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 58) | def test_constructor_maximal(self): method test_list (line 71) | def test_list(self, mock_gcloud_list_descriptors): method test_list_w_api_filter (line 84) | def test_list_w_api_filter(self, mock_gcloud_list_descriptors): method test_list_w_pattern_match (line 103) | def test_list_w_pattern_match(self, mock_gcloud_list_descriptors): method test_list_caching (line 115) | def test_list_caching(self, mock_gcloud_list_descriptors): method test_as_dataframe (line 127) | def test_as_dataframe(self, mock_datalab_list_descriptors): method test_as_dataframe_w_all_args (line 148) | def test_as_dataframe_w_all_args(self, mock_datalab_list_descriptors): method _create_context (line 160) | def _create_context(project_id): method _list_metrics_get_result (line 165) | def _list_metrics_get_result(context): FILE: legacy_tests/stackdriver/monitoring/query_metadata_tests.py class TestCases (line 35) | class TestCases(unittest.TestCase): method setUp (line 37) | def setUp(self): method test_constructor (line 43) | def test_constructor(self, mock_query_iter): method test_iteration (line 55) | def test_iteration(self, mock_query_iter): method test_as_dataframe (line 66) | def test_as_dataframe(self, mock_query_iter): method test_as_dataframe_w_max_rows (line 96) | def test_as_dataframe_w_max_rows(self, mock_query_iter): method test_as_dataframe_w_no_data (line 125) | def test_as_dataframe_w_no_data(self, mock_query_iter): method _query_iter_get_result (line 134) | def _query_iter_get_result(): FILE: legacy_tests/stackdriver/monitoring/query_tests.py class TestCases (line 33) | class TestCases(unittest.TestCase): method setUp (line 35) | def setUp(self): method test_constructor_minimal (line 40) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 55) | def test_constructor_maximal(self): method test_metadata (line 76) | def test_metadata(self, mock_query_iter): FILE: legacy_tests/stackdriver/monitoring/resource_tests.py class TestCases (line 35) | class TestCases(unittest.TestCase): method setUp (line 37) | def setUp(self): method test_constructor_minimal (line 42) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 49) | def test_constructor_maximal(self): method test_list (line 59) | def test_list(self, mock_api_list_descriptors): method test_list_w_api_filter (line 71) | def test_list_w_api_filter(self, mock_api_list_descriptors): method test_list_w_pattern_match (line 85) | def test_list_w_pattern_match(self, mock_api_list_descriptors): method test_list_caching (line 96) | def test_list_caching(self, mock_gcloud_list_descriptors): method test_as_dataframe (line 108) | def test_as_dataframe(self, mock_datalab_list_descriptors): method test_as_dataframe_w_all_args (line 129) | def test_as_dataframe_w_all_args(self, mock_datalab_list_descriptors): method _create_context (line 142) | def _create_context(project_id): method _list_resources_get_result (line 147) | def _list_resources_get_result(): FILE: legacy_tests/stackdriver/monitoring/utils_tests.py class TestCases (line 22) | class TestCases(unittest.TestCase): method test_make_client (line 24) | def test_make_client(self): method test_make_client_w_defaults (line 31) | def test_make_client_w_defaults(self, mock_context_default): method _create_context (line 39) | def _create_context(): FILE: legacy_tests/storage/api_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method validate (line 25) | def validate(self, mock_http_request, expected_url, expected_args=None... method test_buckets_insert (line 40) | def test_buckets_insert(self, mock_http_request): method test_buckets_delete (line 52) | def test_buckets_delete(self, mock_http_request): method test_buckets_get (line 59) | def test_buckets_get(self, mock_http_request): method test_buckets_list (line 69) | def test_buckets_list(self, mock_http_request): method test_object_download (line 81) | def test_object_download(self, mock_http_request): method test_object_upload (line 88) | def test_object_upload(self, mock_http_request): method test_objects_copy (line 96) | def test_objects_copy(self, mock_http_request): method test_objects_delete (line 104) | def test_objects_delete(self, mock_http_request): method test_objects_get (line 111) | def test_objects_get(self, mock_http_request): method test_objects_list (line 122) | def test_objects_list(self, mock_http_request): method test_objects_patch (line 135) | def test_objects_patch(self, mock_http_request): method _create_api (line 142) | def _create_api(): method _create_context (line 147) | def _create_context(): FILE: legacy_tests/storage/bucket_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_bucket_existence (line 27) | def test_bucket_existence(self, mock_api_buckets): method test_bucket_metadata (line 37) | def test_bucket_metadata(self, mock_api_buckets): method _create_bucket (line 46) | def _create_bucket(name='test_bucket'): method _create_context (line 50) | def _create_context(): method _create_buckets_get_result (line 56) | def _create_buckets_get_result(): FILE: legacy_tests/storage/item_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_item_existence (line 28) | def test_item_existence(self, mock_api_objects_get, mock_api_objects_l... method test_item_metadata (line 39) | def test_item_metadata(self, mock_api_objects): method test_enumerate_items_empty (line 50) | def test_enumerate_items_empty(self, mock_api_objects): method test_enumerate_items_single (line 59) | def test_enumerate_items_single(self, mock_api_objects): method test_enumerate_items_multi_page (line 69) | def test_enumerate_items_multi_page(self, mock_api_objects): method _create_bucket (line 83) | def _create_bucket(name='test_bucket'): method _create_context (line 87) | def _create_context(): method _create_objects_get_result (line 93) | def _create_objects_get_result(): method _create_enumeration_empty_result (line 97) | def _create_enumeration_empty_result(): method _create_enumeration_single_result (line 101) | def _create_enumeration_single_result(): method _create_enumeration_multipage_result1 (line 109) | def _create_enumeration_multipage_result1(): method _create_enumeration_multipage_result2 (line 118) | def _create_enumeration_multipage_result2(): FILE: solutionbox/image_classification/mltoolbox/image/classification/_api.py function preprocess_async (line 25) | def preprocess_async(train_dataset, output_dir, eval_dataset=None, check... function preprocess (line 55) | def preprocess(train_dataset, output_dir, eval_dataset=None, checkpoint=... function train_async (line 66) | def train_async(input_dir, batch_size, max_steps, output_dir, checkpoint... function train (line 89) | def train(input_dir, batch_size, max_steps, output_dir, checkpoint=None,... function predict (line 100) | def predict(model, image_files, resize=False, show_image=True, cloud=None): function batch_predict_async (line 126) | def batch_predict_async(dataset, model_dir, output_csv=None, output_bq_t... function batch_predict (line 159) | def batch_predict(dataset, model_dir, output_csv=None, output_bq_table=N... FILE: solutionbox/image_classification/mltoolbox/image/classification/_cloud.py class Cloud (line 36) | class Cloud(object): method preprocess (line 40) | def preprocess(train_dataset, output_dir, eval_dataset, checkpoint, pi... method train (line 99) | def train(input_dir, batch_size, max_steps, output_dir, checkpoint, cl... method predict (line 135) | def predict(model_id, image_files, resize, show_image): method batch_predict (line 169) | def batch_predict(dataset, model_dir, output_csv, output_bq_table, pip... FILE: solutionbox/image_classification/mltoolbox/image/classification/_inceptionlib.py function trunc_normal (line 28) | def trunc_normal(stddev): function inception_v3_base (line 32) | def inception_v3_base(inputs, function inception_v3 (line 442) | def inception_v3(inputs, function _reduced_kernel_size_for_small_input (line 556) | def _reduced_kernel_size_for_small_input(input_tensor, kernel_size): function inception_v3_arg_scope (line 587) | def inception_v3_arg_scope(weight_decay=0.00004, FILE: solutionbox/image_classification/mltoolbox/image/classification/_local.py class Local (line 28) | class Local(object): method preprocess (line 32) | def preprocess(train_dataset, output_dir, eval_dataset, checkpoint): method train (line 54) | def train(input_dir, batch_size, max_steps, output_dir, checkpoint): method predict (line 70) | def predict(model_dir, image_files, resize, show_image): method batch_predict (line 82) | def batch_predict(dataset, model_dir, output_csv, output_bq_table): FILE: solutionbox/image_classification/mltoolbox/image/classification/_model.py class GraphMod (line 43) | class GraphMod(Enum): class GraphReferences (line 49) | class GraphReferences(object): method __init__ (line 52) | def __init__(self): class Model (line 62) | class Model(object): method __init__ (line 65) | def __init__(self, labels, dropout, inception_checkpoint_file): method add_final_training_ops (line 71) | def add_final_training_ops(self, method build_inception_graph (line 114) | def build_inception_graph(self): method build_graph (line 154) | def build_graph(self, data_paths, batch_size, graph_mod): method build_train_graph (line 239) | def build_train_graph(self, data_paths, batch_size): method build_eval_graph (line 242) | def build_eval_graph(self, data_paths, batch_size): method restore_from_checkpoint (line 245) | def restore_from_checkpoint(self, session, inception_checkpoint_file, method build_prediction_graph (line 286) | def build_prediction_graph(self): method export (line 319) | def export(self, last_checkpoint, output_dir): method format_metric_values (line 348) | def format_metric_values(self, metric_values): method format_prediction_values (line 362) | def format_prediction_values(self, prediction): function loss (line 367) | def loss(logits, labels): function training (line 382) | def training(loss_op): FILE: solutionbox/image_classification/mltoolbox/image/classification/_predictor.py function _load_tf_model (line 29) | def _load_tf_model(model_dir): function _tf_predict (line 44) | def _tf_predict(model_dir, images): function predict (line 58) | def predict(model_dir, images): class EmitAsBatchDoFn (line 69) | class EmitAsBatchDoFn(beam.DoFn): method __init__ (line 72) | def __init__(self, batch_size): method process (line 76) | def process(self, element): method finish_bundle (line 83) | def finish_bundle(self, context=None): class UnbatchDoFn (line 88) | class UnbatchDoFn(beam.DoFn): method process (line 91) | def process(self, element): class LoadImagesDoFn (line 96) | class LoadImagesDoFn(beam.DoFn): method process (line 99) | def process(self, element): class PredictBatchDoFn (line 109) | class PredictBatchDoFn(beam.DoFn): method __init__ (line 112) | def __init__(self, model_dir): method start_bundle (line 118) | def start_bundle(self, context=None): method finish_bundle (line 121) | def finish_bundle(self, context=None): method process (line 125) | def process(self, element): class ProcessResultsDoFn (line 145) | class ProcessResultsDoFn(beam.DoFn): method process (line 150) | def process(self, element): class MakeCsvLineDoFn (line 171) | class MakeCsvLineDoFn(beam.DoFn): method process (line 174) | def process(self, element): function configure_pipeline (line 187) | def configure_pipeline(p, dataset, model_dir, output_csv, output_bq_table): FILE: solutionbox/image_classification/mltoolbox/image/classification/_preprocess.py class ExtractLabelIdsDoFn (line 42) | class ExtractLabelIdsDoFn(beam.DoFn): method start_bundle (line 46) | def start_bundle(self, context=None): method process (line 49) | def process(self, element, all_labels): class ReadImageAndConvertToJpegDoFn (line 78) | class ReadImageAndConvertToJpegDoFn(beam.DoFn): method process (line 85) | def process(self, element): class EmbeddingsGraph (line 107) | class EmbeddingsGraph(object): method __init__ (line 116) | def __init__(self, tf_session, checkpoint_path): method build_graph (line 126) | def build_graph(self): method restore_from_checkpoint (line 169) | def restore_from_checkpoint(self, checkpoint_path): method calculate_embedding (line 188) | def calculate_embedding(self, batch_image_bytes): class TFExampleFromImageDoFn (line 201) | class TFExampleFromImageDoFn(beam.DoFn): method __init__ (line 215) | def __init__(self, checkpoint_path): method start_bundle (line 221) | def start_bundle(self, context=None): method finish_bundle (line 233) | def finish_bundle(self, context=None): method process (line 237) | def process(self, element): class TrainEvalSplitPartitionFn (line 271) | class TrainEvalSplitPartitionFn(beam.PartitionFn): method partition_for (line 273) | def partition_for(self, element, num_partitions): class ExampleProtoCoder (line 278) | class ExampleProtoCoder(beam.coders.Coder): method encode (line 281) | def encode(self, example_proto): method decode (line 284) | def decode(self, serialized_str): class SaveFeatures (line 291) | class SaveFeatures(beam.PTransform): method __init__ (line 295) | def __init__(self, file_path_prefix): method expand (line 299) | def expand(self, features): function _labels_pipeline (line 307) | def _labels_pipeline(sources): function _transformation_pipeline (line 316) | def _transformation_pipeline(source, checkpoint, labels, mode): function configure_pipeline (line 327) | def configure_pipeline(p, dataset_train, dataset_eval, checkpoint_path, ... FILE: solutionbox/image_classification/mltoolbox/image/classification/_trainer.py function start_server (line 27) | def start_server(cluster, task): class Evaluator (line 41) | class Evaluator(object): method __init__ (line 44) | def __init__(self, model, data_paths, batch_size, output_path, dataset... method _data_size (line 56) | def _data_size(self, data_paths): method evaluate (line 65) | def evaluate(self, num_eval_batches=None): class Trainer (line 104) | class Trainer(object): method __init__ (line 107) | def __init__(self, input_dir, batch_size, max_steps, output_path, mode... method run_training (line 120) | def run_training(self): method log (line 232) | def log(self, session): method eval (line 246) | def eval(self, session): method save_summaries (line 268) | def save_summaries(self, session): FILE: solutionbox/image_classification/mltoolbox/image/classification/_util.py function is_in_IPython (line 30) | def is_in_IPython(): function default_project (line 38) | def default_project(): function _get_latest_data_dir (line 43) | def _get_latest_data_dir(input_dir): function get_train_eval_files (line 53) | def get_train_eval_files(input_dir): function get_labels (line 63) | def get_labels(input_dir): function read_examples (line 72) | def read_examples(input_files, batch_size, shuffle, num_epochs=None): function override_if_not_in_args (line 120) | def override_if_not_in_args(flag, argument, args): function loss (line 126) | def loss(loss_value): function accuracy (line 136) | def accuracy(logits, labels): function check_dataset (line 150) | def check_dataset(dataset, mode): function get_sources_from_dataset (line 165) | def get_sources_from_dataset(p, dataset, mode): function decode_and_resize (line 192) | def decode_and_resize(image_str_tensor): function resize_image (line 211) | def resize_image(image_str_tensor): function load_images (line 219) | def load_images(image_files, resize=True): function process_prediction_results (line 242) | def process_prediction_results(results, show_image): function repackage_to_staging (line 257) | def repackage_to_staging(output_path): FILE: solutionbox/image_classification/mltoolbox/image/classification/task.py function main (line 33) | def main(_): FILE: solutionbox/ml_workbench/tensorflow/analyze.py function parse_arguments (line 32) | def parse_arguments(argv): function run_cloud_analysis (line 184) | def run_cloud_analysis(output_dir, csv_file_pattern, bigquery_table, sch... function main (line 321) | def main(argv=None): FILE: solutionbox/ml_workbench/tensorflow/trainer/feature_analysis.py function check_schema_transforms_match (line 32) | def check_schema_transforms_match(schema, inverted_features): function save_schema_features (line 103) | def save_schema_features(schema, features, output): function expand_defaults (line 114) | def expand_defaults(schema, features): function invert_features (line 172) | def invert_features(features): function run_local_analysis (line 187) | def run_local_analysis(output_dir, csv_file_pattern, schema, features): FILE: solutionbox/ml_workbench/tensorflow/trainer/feature_transforms.py function _scale (line 84) | def _scale(x, min_x_value, max_x_value, output_min, output_max): function _string_to_int (line 111) | def _string_to_int(x, vocab): function _tfidf (line 140) | def _tfidf(x, reduced_term_freq, vocab_size, corpus_size): function _bag_of_words (line 203) | def _bag_of_words(x): function _make_image_to_vec_tito (line 224) | def _make_image_to_vec_tito(feature_name, tmp_dir=None, checkpoint=None): function make_preprocessing_fn (line 344) | def make_preprocessing_fn(output_dir, features, keep_target): function get_transformed_feature_info (line 435) | def get_transformed_feature_info(features, schema): function csv_header_and_defaults (line 503) | def csv_header_and_defaults(features, schema, stats, keep_target): function build_csv_serving_tensors_for_transform_step (line 534) | def build_csv_serving_tensors_for_transform_step(analysis_path, function build_csv_serving_tensors_for_training_step (line 570) | def build_csv_serving_tensors_for_training_step(analysis_path, function build_csv_transforming_training_input_fn (line 598) | def build_csv_transforming_training_input_fn(schema, function build_tfexample_transfored_training_input_fn (line 701) | def build_tfexample_transfored_training_input_fn(schema, function image_feature_engineering (line 809) | def image_feature_engineering(features, feature_tensors_dict): function get_target_name (line 829) | def get_target_name(features): function read_vocab_file (line 837) | def read_vocab_file(file_path): FILE: solutionbox/ml_workbench/tensorflow/trainer/task.py class DatalabParser (line 61) | class DatalabParser(): method __init__ (line 73) | def __init__(self, epilog=None, datalab_epilog=None): method make_datalab_help_action (line 107) | def make_datalab_help_action(self): method add_argument (line 132) | def add_argument(self, name, **kwargs): method parse_known_args (line 151) | def parse_known_args(self, args=None): function parse_arguments (line 155) | def parse_arguments(argv): function is_linear_model (line 264) | def is_linear_model(model_type): function is_dnn_model (line 268) | def is_dnn_model(model_type): function is_regression_model (line 272) | def is_regression_model(model_type): function is_classification_model (line 276) | def is_classification_model(model_type): function build_feature_columns (line 280) | def build_feature_columns(features, stats, model_type): function recursive_copy (line 359) | def recursive_copy(src_dir, dest_dir): function make_prediction_output_tensors (line 377) | def make_prediction_output_tensors(args, features, input_ops, model_fn_ops, function make_export_strategy (line 462) | def make_export_strategy( function get_estimator (line 585) | def get_estimator(args, output_dir, features, stats, target_vocab_size): function read_vocab (line 642) | def read_vocab(args, column_name): function get_key_names (line 662) | def get_key_names(features): function read_json_file (line 670) | def read_json_file(file_path): function get_experiment_fn (line 676) | def get_experiment_fn(args): function local_analysis (line 817) | def local_analysis(args): function set_logging_level (line 844) | def set_logging_level(args): function main (line 857) | def main(argv=None): FILE: solutionbox/ml_workbench/tensorflow/transform.py function parse_arguments (line 33) | def parse_arguments(argv): function shuffle (line 171) | def shuffle(pcoll): # pylint: disable=invalid-name function image_transform_columns (line 179) | def image_transform_columns(features): function prepare_image_transforms (line 197) | def prepare_image_transforms(element, image_columns): class EmitAsBatchDoFn (line 241) | class EmitAsBatchDoFn(beam.DoFn): method __init__ (line 244) | def __init__(self, batch_size): method process (line 253) | def process(self, element): method finish_bundle (line 260) | def finish_bundle(self, element=None): class TransformFeaturesDoFn (line 268) | class TransformFeaturesDoFn(beam.DoFn): method __init__ (line 271) | def __init__(self, analysis_output_dir, features, schema, stats): method start_bundle (line 278) | def start_bundle(self, element=None): method finish_bundle (line 301) | def finish_bundle(self, element=None): method process (line 304) | def process(self, element): function decode_csv (line 355) | def decode_csv(csv_string, column_names): function encode_csv (line 373) | def encode_csv(data_dict, column_names): function serialize_example (line 392) | def serialize_example(transformed_json_data, info_dict): function preprocess (line 431) | def preprocess(pipeline, args): function main (line 509) | def main(argv=None): FILE: solutionbox/ml_workbench/test_tensorflow/test_analyze.py class TestConfigFiles (line 37) | class TestConfigFiles(unittest.TestCase): method test_expand_defaults_do_nothing (line 40) | def test_expand_defaults_do_nothing(self): method test_expand_defaults_unknown_schema_type (line 54) | def test_expand_defaults_unknown_schema_type(self): method test_expand_defaults (line 63) | def test_expand_defaults(self): method test_check_schema_transforms_match (line 85) | def test_check_schema_transforms_match(self): class TestLocalAnalyze (line 132) | class TestLocalAnalyze(unittest.TestCase): method test_numerics (line 135) | def test_numerics(self): method test_categorical (line 169) | def test_categorical(self): method test_text (line 219) | def test_text(self): class TestCloudAnalyzeFromBQTable (line 277) | class TestCloudAnalyzeFromBQTable(unittest.TestCase): method test_numerics (line 285) | def test_numerics(self): class TestCloudAnalyzeFromCSVFiles (line 338) | class TestCloudAnalyzeFromCSVFiles(unittest.TestCase): method setUpClass (line 342) | def setUpClass(cls): method tearDownClass (line 348) | def tearDownClass(cls): method test_numerics (line 354) | def test_numerics(self): method test_categorical (line 392) | def test_categorical(self): method test_text (line 445) | def test_text(self): class TestOneSourceColumnManyFeatures (line 499) | class TestOneSourceColumnManyFeatures(unittest.TestCase): method test_multiple_usage (line 502) | def test_multiple_usage(self): FILE: solutionbox/ml_workbench/test_tensorflow/test_cloud_workflow.py class TestCloudServices (line 23) | class TestCloudServices(unittest.TestCase): method __init__ (line 46) | def __init__(self, *args, **kwargs): method setUp (line 57) | def setUp(self): method tearDown (line 80) | def tearDown(self): method _make_image_files (line 86) | def _make_image_files(self): method _make_csv_data (line 107) | def _make_csv_data(self, filename, num_rows, keep_target=True, embedde... method _get_default_project_id (line 161) | def _get_default_project_id(self): method _run_analyze (line 166) | def _run_analyze(self): method _run_transform (line 205) | def _run_transform(self): method _run_training_transform (line 247) | def _run_training_transform(self): method _run_batch_prediction (line 281) | def _run_batch_prediction(self): method test_cloud_workflow (line 306) | def test_cloud_workflow(self): FILE: solutionbox/ml_workbench/test_tensorflow/test_feature_transforms.py class TestGraphBuilding (line 35) | class TestGraphBuilding(unittest.TestCase): method _run_graph (line 38) | def _run_graph(self, analysis_path, features, schema, stats, predict_d... method test_make_transform_graph_numerics (line 60) | def test_make_transform_graph_numerics(self): method test_make_transform_graph_category (line 97) | def test_make_transform_graph_category(self): method test_make_transform_graph_text_tfidf (line 131) | def test_make_transform_graph_text_tfidf(self): method test_make_transform_graph_text_multi_hot (line 201) | def test_make_transform_graph_text_multi_hot(self): method test_make_transform_graph_text_bag_of_words (line 248) | def test_make_transform_graph_text_bag_of_words(self): method test_make_transform_graph_images (line 311) | def test_make_transform_graph_images(self): FILE: solutionbox/ml_workbench/test_tensorflow/test_training.py function run_exported_model (line 26) | def run_exported_model(model_path, csv_data): class TestSpecialCharacters (line 59) | class TestSpecialCharacters(unittest.TestCase): method testCommaQuote (line 62) | def testCommaQuote(self): class TestClassificationTopN (line 170) | class TestClassificationTopN(unittest.TestCase): method testTopNZero (line 173) | def testTopNZero(self): class TestMultipleFeatures (line 228) | class TestMultipleFeatures(unittest.TestCase): method testMultipleColumnsRaw (line 231) | def testMultipleColumnsRaw(self): method testMultipleColumnsTransformed (line 288) | def testMultipleColumnsTransformed(self): class TestOptionalKeys (line 369) | class TestOptionalKeys(unittest.TestCase): method testNoKeys (line 370) | def testNoKeys(self): method testManyKeys (line 418) | def testManyKeys(self): class TestTrainer (line 473) | class TestTrainer(unittest.TestCase): method __init__ (line 480) | def __init__(self, *args, **kwargs): method setUp (line 494) | def setUp(self): method tearDown (line 511) | def tearDown(self): method make_image_files (line 515) | def make_image_files(self): method make_csv_data (line 527) | def make_csv_data(self, filename, num_rows, problem_type, keep_target=... method _create_schema_features (line 642) | def _create_schema_features(self, problem_type, with_image=False): method _run_analyze (line 688) | def _run_analyze(self, problem_type, with_image=False): method _run_transform (line 699) | def _run_transform(self): method _run_training_transform (line 719) | def _run_training_transform(self, problem_type, model_type, extra_args... method _run_training_raw (line 741) | def _run_training_raw(self, problem_type, model_type, extra_args=[]): method _run_training_with_analysis (line 764) | def _run_training_with_analysis(self, problem_type, model_type, extra_... method _check_model (line 788) | def _check_model(self, problem_type, model_type, with_image=False): method testClassificationLinear (line 864) | def testClassificationLinear(self): method testRegressionLinear (line 878) | def testRegressionLinear(self): method testRegressionDNN (line 892) | def testRegressionDNN(self): method testClassificationDNNWithImage (line 908) | def testClassificationDNNWithImage(self): method testTrainingWithAnalysis (line 925) | def testTrainingWithAnalysis(self): FILE: solutionbox/ml_workbench/test_tensorflow/test_transform.py class TestTransformRawData (line 31) | class TestTransformRawData(unittest.TestCase): method setUpClass (line 35) | def setUpClass(cls): method tearDownClass (line 95) | def tearDownClass(cls): method test_local_csv_transform (line 98) | def test_local_csv_transform(self): method test_local_bigquery_transform (line 144) | def test_local_bigquery_transform(self): FILE: solutionbox/ml_workbench/test_xgboost/test_analyze.py class TestConfigFiles (line 26) | class TestConfigFiles(unittest.TestCase): method test_expand_defaults_do_nothing (line 29) | def test_expand_defaults_do_nothing(self): method test_expand_defaults_unknown_schema_type (line 43) | def test_expand_defaults_unknown_schema_type(self): method test_expand_defaults (line 52) | def test_expand_defaults(self): class TestLocalAnalyze (line 75) | class TestLocalAnalyze(unittest.TestCase): method test_numerics (line 78) | def test_numerics(self): method test_categorical (line 112) | def test_categorical(self): method test_text (line 148) | def test_text(self): FILE: solutionbox/ml_workbench/test_xgboost/test_transform.py class TestTransformRawData (line 21) | class TestTransformRawData(unittest.TestCase): method setUpClass (line 25) | def setUpClass(cls): method tearDownClass (line 85) | def tearDownClass(cls): method test_local_csv_transform (line 89) | def test_local_csv_transform(self): FILE: solutionbox/ml_workbench/xgboost/analyze.py function parse_arguments (line 32) | def parse_arguments(argv): function run_cloud_analysis (line 173) | def run_cloud_analysis(output_dir, csv_file_pattern, bigquery_table, sch... function main (line 310) | def main(argv=None): FILE: solutionbox/ml_workbench/xgboost/trainer/feature_analysis.py function check_schema_transforms_match (line 32) | def check_schema_transforms_match(schema, inverted_features): function save_schema_features (line 103) | def save_schema_features(schema, features, output): function expand_defaults (line 114) | def expand_defaults(schema, features): function invert_features (line 172) | def invert_features(features): function run_local_analysis (line 185) | def run_local_analysis(output_dir, csv_file_pattern, schema, features): FILE: solutionbox/ml_workbench/xgboost/trainer/feature_transforms.py function _scale (line 78) | def _scale(x, min_x_value, max_x_value, output_min, output_max): function _string_to_int (line 105) | def _string_to_int(x, vocab): function _make_image_to_vec_tito (line 132) | def _make_image_to_vec_tito(feature_name, tmp_dir=None, checkpoint=None): function make_preprocessing_fn (line 252) | def make_preprocessing_fn(output_dir, features, keep_target): function csv_header_and_defaults (line 317) | def csv_header_and_defaults(features, schema, stats, keep_target): function build_csv_serving_tensors_for_transform_step (line 348) | def build_csv_serving_tensors_for_transform_step(analysis_path, function get_target_name (line 384) | def get_target_name(features): function read_vocab_file (line 392) | def read_vocab_file(file_path): function get_transformed_feature_indices (line 415) | def get_transformed_feature_indices(features, stats): function create_feature_map (line 447) | def create_feature_map(features, feature_indices, output_dir): FILE: solutionbox/ml_workbench/xgboost/trainer/task.py class DatalabParser (line 61) | class DatalabParser(): method __init__ (line 73) | def __init__(self, epilog=None, datalab_epilog=None): method make_datalab_help_action (line 107) | def make_datalab_help_action(self): method add_argument (line 132) | def add_argument(self, name, **kwargs): method parse_known_args (line 151) | def parse_known_args(self, args=None): function parse_arguments (line 155) | def parse_arguments(argv): function is_linear_model (line 264) | def is_linear_model(model_type): function is_dnn_model (line 268) | def is_dnn_model(model_type): function is_regression_model (line 272) | def is_regression_model(model_type): function is_classification_model (line 276) | def is_classification_model(model_type): function build_feature_columns (line 280) | def build_feature_columns(features, stats, model_type): function recursive_copy (line 359) | def recursive_copy(src_dir, dest_dir): function make_prediction_output_tensors (line 377) | def make_prediction_output_tensors(args, features, input_ops, model_fn_ops, function make_export_strategy (line 462) | def make_export_strategy( function get_estimator (line 585) | def get_estimator(args, output_dir, features, stats, target_vocab_size): function read_vocab (line 642) | def read_vocab(args, column_name): function get_key_names (line 662) | def get_key_names(features): function read_json_file (line 670) | def read_json_file(file_path): function get_experiment_fn (line 676) | def get_experiment_fn(args): function local_analysis (line 817) | def local_analysis(args): function set_logging_level (line 844) | def set_logging_level(args): function main (line 857) | def main(argv=None): FILE: solutionbox/ml_workbench/xgboost/transform.py function parse_arguments (line 33) | def parse_arguments(argv): function shuffle (line 171) | def shuffle(pcoll): # pylint: disable=invalid-name function image_transform_columns (line 179) | def image_transform_columns(features): function prepare_image_transforms (line 197) | def prepare_image_transforms(element, image_columns): class EmitAsBatchDoFn (line 241) | class EmitAsBatchDoFn(beam.DoFn): method __init__ (line 244) | def __init__(self, batch_size): method process (line 253) | def process(self, element): method finish_bundle (line 260) | def finish_bundle(self, element=None): class TransformFeaturesDoFn (line 268) | class TransformFeaturesDoFn(beam.DoFn): method __init__ (line 271) | def __init__(self, analysis_output_dir, features, schema, stats): method start_bundle (line 278) | def start_bundle(self, element=None): method finish_bundle (line 301) | def finish_bundle(self, element=None): method process (line 304) | def process(self, element): function decode_csv (line 355) | def decode_csv(csv_string, column_names): function encode_csv (line 373) | def encode_csv(data_dict, column_names): function serialize_example (line 392) | def serialize_example(transformed_json_data, features, feature_indices, ... function preprocess (line 424) | def preprocess(pipeline, args): function main (line 514) | def main(argv=None): FILE: solutionbox/structured_data/mltoolbox/_structured_data/_package.py class FileNotFoundError (line 58) | class FileNotFoundError(IOError): function _default_project (line 62) | def _default_project(): function _assert_gcs_files (line 67) | def _assert_gcs_files(files): function _package_to_staging (line 87) | def _package_to_staging(staging_package_url): function _wait_and_kill (line 108) | def _wait_and_kill(pid_to_wait, pids_to_kill): function analyze (line 136) | def analyze(output_dir, dataset, cloud=False, project_id=None): function analyze_async (line 147) | def analyze_async(output_dir, dataset, cloud=False, project_id=None): function _analyze (line 171) | def _analyze(output_dir, dataset, cloud=False, project_id=None): function train_async (line 216) | def train_async(train_dataset, function local_train (line 363) | def local_train(train_dataset, function cloud_train (line 456) | def cloud_train(train_dataset, function predict (line 550) | def predict(data, training_dir=None, model_name=None, model_version=None... function local_predict (line 595) | def local_predict(training_dir, data): function cloud_predict (line 671) | def cloud_predict(model_name, model_version, data): function batch_predict (line 722) | def batch_predict(training_dir, prediction_input_file, output_dir, function batch_predict_async (line 742) | def batch_predict_async(training_dir, prediction_input_file, output_dir, function local_batch_predict (line 780) | def local_batch_predict(training_dir, prediction_input_file, output_dir,... function cloud_batch_predict (line 810) | def cloud_batch_predict(training_dir, prediction_input_file, output_dir,... FILE: solutionbox/structured_data/mltoolbox/_structured_data/master_setup.py function get_version (line 21) | def get_version(): FILE: solutionbox/structured_data/mltoolbox/_structured_data/prediction/predict.py function parse_arguments (line 30) | def parse_arguments(argv): class EmitAsBatchDoFn (line 112) | class EmitAsBatchDoFn(beam.DoFn): method __init__ (line 115) | def __init__(self, batch_size): method process (line 124) | def process(self, element): method finish_bundle (line 131) | def finish_bundle(self, element=None): class RunGraphDoFn (line 136) | class RunGraphDoFn(beam.DoFn): method __init__ (line 139) | def __init__(self, trained_model_dir): method start_bundle (line 143) | def start_bundle(self, element=None): method finish_bundle (line 159) | def finish_bundle(self, element=None): method process (line 165) | def process(self, element): class RawJsonCoder (line 221) | class RawJsonCoder(beam.coders.Coder): method encode (line 224) | def encode(self, obj): class CSVCoder (line 237) | class CSVCoder(beam.coders.Coder): method __init__ (line 240) | def __init__(self, header): method make_header_string (line 248) | def make_header_string(self): method encode (line 251) | def encode(self, tf_graph_predictions): class FormatAndSave (line 267) | class FormatAndSave(beam.PTransform): method __init__ (line 269) | def __init__(self, args): method apply (line 304) | def apply(self, datasets): method expand (line 307) | def expand(self, datasets): function make_prediction_pipeline (line 349) | def make_prediction_pipeline(pipeline, args): function main (line 376) | def main(argv=None): FILE: solutionbox/structured_data/mltoolbox/_structured_data/preprocess/cloud_preprocess.py function parse_arguments (line 33) | def parse_arguments(argv): function parse_table_name (line 91) | def parse_table_name(bigquery_table): function run_numerical_analysis (line 111) | def run_numerical_analysis(table, schema_list, args): function run_categorical_analysis (line 159) | def run_categorical_analysis(table, schema_list, args): function run_analysis (line 222) | def run_analysis(args): function main (line 259) | def main(argv=None): FILE: solutionbox/structured_data/mltoolbox/_structured_data/preprocess/local_preprocess.py function parse_arguments (line 37) | def parse_arguments(argv): function run_numerical_categorical_analysis (line 69) | def run_numerical_categorical_analysis(args, schema_list): function run_analysis (line 147) | def run_analysis(args): function main (line 162) | def main(argv=None): FILE: solutionbox/structured_data/mltoolbox/_structured_data/trainer/task.py function get_reader_input_fn (line 30) | def get_reader_input_fn(train_config, preprocess_output_dir, model_type, function get_experiment_fn (line 60) | def get_experiment_fn(args): function parse_arguments (line 135) | def parse_arguments(argv): function main (line 231) | def main(argv=None): FILE: solutionbox/structured_data/mltoolbox/_structured_data/trainer/util.py class NotFittedError (line 61) | class NotFittedError(ValueError): function _recursive_copy (line 69) | def _recursive_copy(src_dir, dest_dir): function serving_from_csv_input (line 90) | def serving_from_csv_input(train_config, args, keep_target): function make_output_tensors (line 118) | def make_output_tensors(train_config, args, input_ops, model_fn_ops, kee... function make_export_strategy (line 185) | def make_export_strategy(train_config, args, keep_target, assets_extra=N... function parse_example_tensor (line 281) | def parse_example_tensor(examples, train_config, keep_target): function read_examples (line 315) | def read_examples(input_files, batch_size, shuffle, num_epochs=None): function get_estimator (line 367) | def get_estimator(output_dir, train_config, args): function preprocess_input (line 448) | def preprocess_input(features, target, train_config, preprocess_output_dir, function _scale_tensor (line 545) | def _scale_tensor(tensor, range_min, range_max, scale_min, scale_max): function _tflearn_features (line 570) | def _tflearn_features(train_config, args): function get_vocabulary (line 655) | def get_vocabulary(preprocess_output_dir, name): function merge_metadata (line 680) | def merge_metadata(preprocess_output_dir, transforms_file): function validate_metadata (line 811) | def validate_metadata(train_config): function is_linear_model (line 841) | def is_linear_model(model_type): function is_dnn_model (line 845) | def is_dnn_model(model_type): function is_regression_model (line 849) | def is_regression_model(model_type): function is_classification_model (line 853) | def is_classification_model(model_type): function python_portable_string (line 859) | def python_portable_string(string, encoding='utf-8'): FILE: solutionbox/structured_data/mltoolbox/classification/dnn/_classification_dnn.py function train (line 4) | def train(train_dataset, function train_async (line 44) | def train_async(train_dataset, FILE: solutionbox/structured_data/mltoolbox/classification/linear/_classification_linear.py function train (line 4) | def train(train_dataset, function train_async (line 42) | def train_async(train_dataset, FILE: solutionbox/structured_data/mltoolbox/regression/dnn/_regression_dnn.py function train (line 4) | def train(train_dataset, function train_async (line 42) | def train_async(train_dataset, FILE: solutionbox/structured_data/mltoolbox/regression/linear/_regression_linear.py function train (line 4) | def train(train_dataset, function train_async (line 40) | def train_async(train_dataset, FILE: solutionbox/structured_data/setup.py function get_version (line 21) | def get_version(): FILE: solutionbox/structured_data/test_mltoolbox/e2e_functions.py function make_csv_data (line 24) | def make_csv_data(filename, num_rows, problem_type, keep_target=True): function make_preprocess_schema (line 83) | def make_preprocess_schema(filename, problem_type): function run_preprocess (line 138) | def run_preprocess(output_dir, csv_filename, schema_filename, logger): function run_training (line 160) | def run_training( FILE: solutionbox/structured_data/test_mltoolbox/test_datalab_e2e.py class TestLinearRegression (line 38) | class TestLinearRegression(unittest.TestCase): method __init__ (line 46) | def __init__(self, *args, **kwargs): method _make_test_files (line 55) | def _make_test_files(self): method _run_analyze (line 102) | def _run_analyze(self): method _run_train (line 114) | def _run_train(self): method _run_predict (line 133) | def _run_predict(self): method _run_batch_prediction (line 142) | def _run_batch_prediction(self, output_dir, use_target): method _cleanup (line 176) | def _cleanup(self): method test_e2e (line 179) | def test_e2e(self): FILE: solutionbox/structured_data/test_mltoolbox/test_package_functions.py class TestAnalyze (line 36) | class TestAnalyze(unittest.TestCase): method test_not_csvdataset (line 38) | def test_not_csvdataset(self): method test_csvdataset_one_file (line 44) | def test_csvdataset_one_file(self): method test_projectid (line 55) | def test_projectid(self): method test_cloud_with_local_output_folder (line 66) | def test_cloud_with_local_output_folder(self): method test_cloud_but_local_files (line 76) | def test_cloud_but_local_files(self): method test_unsupported_schema (line 86) | def test_unsupported_schema(self): class TestFunctionSignature (line 119) | class TestFunctionSignature(unittest.TestCase): method _argspec (line 121) | def _argspec(self, fn_obj): method test_same_analysis (line 127) | def test_same_analysis(self): method test_same_analysis_async (line 134) | def test_same_analysis_async(self): method test_analysis_argspec (line 141) | def test_analysis_argspec(self): FILE: solutionbox/structured_data/test_mltoolbox/test_sd_preprocess.py class TestPreprocess (line 30) | class TestPreprocess(unittest.TestCase): method __init__ (line 35) | def __init__(self, *args, **kwargs): method setUp (line 44) | def setUp(self): method tearDown (line 52) | def tearDown(self): method _make_test_data (line 56) | def _make_test_data(self, problem_type): method _test_preprocess (line 65) | def _test_preprocess(self, problem_type): method testRegression (line 105) | def testRegression(self): method testClassification (line 108) | def testClassification(self): FILE: solutionbox/structured_data/test_mltoolbox/test_sd_trainer.py class TestTrainer (line 29) | class TestTrainer(unittest.TestCase): method __init__ (line 36) | def __init__(self, *args, **kwargs): method setUp (line 50) | def setUp(self): method tearDown (line 66) | def tearDown(self): method _run_training (line 70) | def _run_training(self, problem_type, model_type, transforms, extra_ar... method _check_training_screen_output (line 110) | def _check_training_screen_output(self, accuracy=None, loss=None): method _check_train_files (line 171) | def _check_train_files(self): method _check_savedmodel (line 175) | def _check_savedmodel(self, model_folder): method testRegressionDnn (line 185) | def testRegressionDnn(self): method testRegressionLinear (line 206) | def testRegressionLinear(self): method testClassificationDnn (line 225) | def testClassificationDnn(self): method testClassificationLinear (line 246) | def testClassificationLinear(self): FILE: tests/_util/commands_tests.py class TestCases (line 27) | class TestCases(unittest.TestCase): method redirect_stderr (line 32) | def redirect_stderr(target): method test_subcommand_line (line 38) | def test_subcommand_line(self): method test_subcommand_line_cell (line 66) | def test_subcommand_line_cell(self): method test_subcommand_var_replacement (line 119) | def test_subcommand_var_replacement(self): method test_subcommand_help (line 146) | def test_subcommand_help(self): FILE: tests/_util/feature_statistics_generator_test.py class FeatureStatisticsGeneratorTest (line 21) | class FeatureStatisticsGeneratorTest(googletest.TestCase): method setUp (line 23) | def setUp(self): method testParseExampleInt (line 26) | def testParseExampleInt(self): method testParseExampleMissingValueList (line 47) | def testParseExampleMissingValueList(self): method _check_sequence_example_entries (line 71) | def _check_sequence_example_entries(self, method testParseExampleSequenceContext (line 89) | def testParseExampleSequenceContext(self): method testParseExampleSequenceFeatureList (line 104) | def testParseExampleSequenceFeatureList(self): method testParseExampleSequenceFeatureListMultipleEntriesInner (line 118) | def testParseExampleSequenceFeatureListMultipleEntriesInner(self): method testParseExampleSequenceFeatureListMultipleEntriesOuter (line 134) | def testParseExampleSequenceFeatureListMultipleEntriesOuter(self): method testVaryingCountsAndMissing (line 150) | def testVaryingCountsAndMissing(self): method testParseExampleStringsAndFloats (line 174) | def testParseExampleStringsAndFloats(self): method testParseExamplesTypeMismatch (line 197) | def testParseExamplesTypeMismatch(self): method testGetDatasetsProtoFromEntriesLists (line 212) | def testGetDatasetsProtoFromEntriesLists(self): method testGetProtoNums (line 234) | def testGetProtoNums(self): method testQuantiles (line 306) | def testQuantiles(self): method testInfinityAndNan (line 337) | def testInfinityAndNan(self): method testInfinitysOnly (line 383) | def testInfinitysOnly(self): method testGetProtoStrings (line 411) | def testGetProtoStrings(self): method testGetProtoMultipleDatasets (line 476) | def testGetProtoMultipleDatasets(self): method testGetEntriesNoFiles (line 520) | def testGetEntriesNoFiles(self): method get_example_iter (line 527) | def get_example_iter(): method testGetEntries_one (line 539) | def testGetEntries_one(self): method testGetEntries_oneFile (line 545) | def testGetEntries_oneFile(self): method testGetEntries_twoFiles (line 550) | def testGetEntries_twoFiles(self): method testGetEntries_stopInSecondFile (line 556) | def testGetEntries_stopInSecondFile(self): FILE: tests/_util/generic_feature_statistics_generator_test.py class GenericFeatureStatisticsGeneratorTest (line 22) | class GenericFeatureStatisticsGeneratorTest(googletest.TestCase): method setUp (line 24) | def setUp(self): method testProtoFromDataFrames (line 27) | def testProtoFromDataFrames(self): method testNdarrayToEntry (line 54) | def testNdarrayToEntry(self): method testNdarrayToEntryTimeTypes (line 64) | def testNdarrayToEntryTimeTypes(self): method testDTypeToType (line 78) | def testDTypeToType(self): method testGetDatasetsProtoFromEntriesLists (line 96) | def testGetDatasetsProtoFromEntriesLists(self): method testGetDatasetsProtoSequenceExampleHistogram (line 128) | def testGetDatasetsProtoSequenceExampleHistogram(self): method testGetDatasetsProtoWithAllowlist (line 151) | def testGetDatasetsProtoWithAllowlist(self): FILE: tests/_util/http_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method test_get_request_is_invoked (line 27) | def test_get_request_is_invoked(self, mock_request, mock_response): method test_post_request_is_invoked (line 36) | def test_post_request_is_invoked(self, mock_request, mock_response): method test_explicit_post_request_is_invoked (line 44) | def test_explicit_post_request_is_invoked(self, mock_request, mock_res... method test_query_string_format (line 52) | def test_query_string_format(self, mock_request, mock_response): method test_formats_json_request (line 63) | def test_formats_json_request(self, mock_request, mock_response): method test_supports_custom_content (line 75) | def test_supports_custom_content(self, mock_request, mock_response): method test_parses_json_response (line 87) | def test_parses_json_response(self, mock_request, mock_response): method test_raises_http_error_json (line 95) | def test_raises_http_error_json(self, mock_request, mock_response): method test_raises_http_error_str (line 108) | def test_raises_http_error_str(self, mock_request, mock_response): method test_raises_http_error_bytes (line 120) | def test_raises_http_error_bytes(self, mock_request, mock_response): method _setup_mocks (line 131) | def _setup_mocks(mock_request, mock_response, content, status=200): FILE: tests/_util/lru_cache_tests.py class TestCases (line 20) | class TestCases(unittest.TestCase): method test_cache_no_entry (line 22) | def test_cache_no_entry(self): method test_cache_lookup (line 27) | def test_cache_lookup(self): method test_cache_overflow (line 35) | def test_cache_overflow(self): FILE: tests/_util/util_tests.py class TestCases (line 28) | class TestCases(unittest.TestCase): method _get_data (line 31) | def _get_data(): method test_no_entry (line 44) | def test_no_entry(self): method test_entry (line 52) | def test_entry(self): method test_compare_datetimes (line 60) | def test_compare_datetimes(self): method test_compare_datetimes_tz (line 67) | def test_compare_datetimes_tz(self): method test_get_config_dir (line 78) | def test_get_config_dir(self, mock_expand_user): method test_get_config_dir_win (line 87) | def test_get_config_dir_win(self, mock_path_join): method test_get_credentials_from_file (line 99) | def test_get_credentials_from_file(self, mock_path_exists, mock_google... method test_save_project_id (line 147) | def test_save_project_id(self, mock_path_exists, mock_subprocess_call): method test_get_default_project_id (line 167) | def test_get_default_project_id(self, mock_path_exists, mock_subproces... method test_iterator (line 191) | def test_iterator(self): FILE: tests/bigquery/api_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method validate (line 27) | def validate(self, mock_http_request, expected_url, expected_args=None... method test_jobs_insert_load (line 50) | def test_jobs_insert_load(self, mock_http_request): method test_jobs_insert_query (line 107) | def test_jobs_insert_query(self, mock_http_request): method test_jobs_query_results (line 158) | def test_jobs_query_results(self, mock_http_request): method test_jobs_get (line 166) | def test_jobs_get(self, mock_http_request): method test_datasets_insert (line 173) | def test_datasets_insert(self, mock_http_request): method test_datasets_delete (line 200) | def test_datasets_delete(self, mock_http_request): method test_datasets_update (line 212) | def test_datasets_update(self, mock_http_request): method test_datasets_get (line 219) | def test_datasets_get(self, mock_http_request): method test_datasets_list (line 225) | def test_datasets_list(self, mock_http_request): method test_tables_get (line 238) | def test_tables_get(self, mock_http_request): method test_tables_list (line 245) | def test_tables_list(self, mock_http_request): method test_tables_insert (line 258) | def test_tables_insert(self, mock_http_request): method test_tabledata_insertAll (line 294) | def test_tabledata_insertAll(self, mock_http_request): method test_tabledata_list (line 306) | def test_tabledata_list(self, mock_http_request): method test_table_delete (line 323) | def test_table_delete(self, mock_http_request): method test_table_extract (line 331) | def test_table_extract(self, mock_http_request): method test_table_update (line 379) | def test_table_update(self, mock_http_request): method _create_api (line 387) | def _create_api(context=None): method _create_context (line 393) | def _create_context(): FILE: tests/bigquery/dataset_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method _check_name_parts (line 27) | def _check_name_parts(self, dataset): method test_parse_full_name (line 34) | def test_parse_full_name(self): method test_parse_local_name (line 38) | def test_parse_local_name(self): method test_parse_dict_full_name (line 42) | def test_parse_dict_full_name(self): method test_parse_dict_local_name (line 46) | def test_parse_dict_local_name(self): method test_parse_named_tuple_name (line 50) | def test_parse_named_tuple_name(self): method test_parse_tuple_full_name (line 55) | def test_parse_tuple_full_name(self): method test_parse_tuple_local (line 59) | def test_parse_tuple_local(self): method test_parse_array_full_name (line 63) | def test_parse_array_full_name(self): method test_parse_array_local (line 67) | def test_parse_array_local(self): method test_parse_invalid_name (line 71) | def test_parse_invalid_name(self): method test_dataset_exists (line 76) | def test_dataset_exists(self, mock_api_datasets_get): method test_datasets_create_fails (line 86) | def test_datasets_create_fails(self, mock_api_datasets_get, mock_api_d... method test_datasets_create_succeeds (line 96) | def test_datasets_create_succeeds(self, mock_api_datasets_get, mock_ap... method test_datasets_create_redundant (line 104) | def test_datasets_create_redundant(self, mock_api_datasets_get, mock_a... method test_datasets_delete_succeeds (line 112) | def test_datasets_delete_succeeds(self, mock_api_datasets_delete, mock... method test_datasets_delete_fails (line 120) | def test_datasets_delete_fails(self, mock_api_datasets_delete, mock_ap... method test_tables_list (line 128) | def test_tables_list(self, mock_api_tables_list): method test_datasets_list (line 149) | def test_datasets_list(self, mock_api_datasets_list, mock_dataset_get_... method test_datasets_update (line 166) | def test_datasets_update(self, mock_api_datasets_update, mock_api_data... method _create_context (line 189) | def _create_context(): method _create_dataset (line 195) | def _create_dataset(name, metadata=None): FILE: tests/bigquery/external_data_source_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method _request_result (line 31) | def _request_result(): method _get_data (line 49) | def _get_data(): method _get_table_definition (line 61) | def _get_table_definition(uris, skip_rows=0): method _get_expected_request_data (line 87) | def _get_expected_request_data(sql, table_definitions): method test_external_table_query (line 105) | def test_external_table_query(self, mock_http_request): method test_external_table_query2 (line 128) | def test_external_table_query2(self, mock_http_request): method test_external_tables_query (line 149) | def test_external_tables_query(self, mock_http_request): method _create_context (line 175) | def _create_context(): FILE: tests/bigquery/jobs_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method _make_job (line 28) | def _make_job(id): method test_job_complete (line 32) | def test_job_complete(self, mock_api_jobs_get): method test_job_fatal_error (line 42) | def test_job_fatal_error(self, mock_api_jobs_get): method test_job_errors (line 63) | def test_job_errors(self, mock_api_jobs_get): method _create_context (line 93) | def _create_context(): method _create_api (line 99) | def _create_api(): FILE: tests/bigquery/operator_tests.py function noop_decorator (line 21) | def noop_decorator(func): class TestCases (line 40) | class TestCases(unittest.TestCase): method _create_context (line 51) | def _create_context(): method test_extract_operator (line 58) | def test_extract_operator(self, mock_table_extract, mock_context_defau... method test_execute_operator_definition (line 89) | def test_execute_operator_definition(self, mock_get_notebook_item, moc... method test_execute_operator (line 106) | def test_execute_operator(self, mock_query_job, mock_query_output_tabl... method test_execute_operator_with_data_source (line 123) | def test_execute_operator_with_data_source(self, mock_query_job, mock_... method test_load_operator (line 165) | def test_load_operator(self, mock_table_load, mock_table_exists, mock_... method test_execute_operator_defaults (line 228) | def test_execute_operator_defaults(self): method test_extract_operator_defaults (line 235) | def test_extract_operator_defaults(self): method test_load_operator_defaults (line 241) | def test_load_operator_defaults(self): FILE: tests/bigquery/parser_tests.py class TestCases (line 19) | class TestCases(unittest.TestCase): method test_repeating_data (line 21) | def test_repeating_data(self): method test_non_nested_data (line 28) | def test_non_nested_data(self): method test_parse_nested_data (line 242) | def test_parse_nested_data(self): FILE: tests/bigquery/pipeline_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method _create_context (line 44) | def _create_context(): method assertPipelineConfigEquals (line 49) | def assertPipelineConfigEquals(self, actual, expected, expected_pipeli... method test_get_pipeline_spec_from_config (line 71) | def test_get_pipeline_spec_from_config(self, mock_notebook_item): method test_get_load_parameters (line 348) | def test_get_load_parameters(self): method test_get_extract_parameters (line 398) | def test_get_extract_parameters(self): method test_get_execute_parameters (line 425) | def test_get_execute_parameters(self, mock_notebook_item): method assertExecuteConfigEquals (line 562) | def assertExecuteConfigEquals(self, actual_execute_config, expected_ex... method compare_parameters (line 570) | def compare_parameters(self, actual_parameters, user_parameters): method test_pipeline_cell_golden (line 587) | def test_pipeline_cell_golden(self, mock_bucket_class, mock_get_table,... FILE: tests/bigquery/query_tests.py class TestCases (line 25) | class TestCases(unittest.TestCase): method test_parameter_validation (line 27) | def test_parameter_validation(self): method test_query_with_udf_object (line 56) | def test_query_with_udf_object(self): method test_single_result_query (line 66) | def test_single_result_query(self, mock_api_tables_get, mock_api_jobs_... method test_empty_result_query (line 90) | def test_empty_result_query(self, mock_api_tables_get, mock_api_jobs_get, method test_incomplete_result_query (line 107) | def test_incomplete_result_query(self, method test_malformed_response_raises_exception (line 125) | def test_malformed_response_raises_exception(self, mock_api_insert_que... method test_nested_subquery_expansion (line 135) | def test_nested_subquery_expansion(self): method test_subquery_expansion_order (line 180) | def test_subquery_expansion_order(self): method _create_query (line 202) | def _create_query(sql='SELECT * ...', name=None, env=None, udfs=None, ... method _create_udf (line 213) | def _create_udf(name, code, return_type): method _create_data_source (line 217) | def _create_data_source(source): method _create_context (line 221) | def _create_context(): method _create_insert_done_result (line 227) | def _create_insert_done_result(): method _create_single_row_result (line 246) | def _create_single_row_result(): method _create_empty_result (line 256) | def _create_empty_result(): method _create_incomplete_result (line 263) | def _create_incomplete_result(): method _create_page_result (line 282) | def _create_page_result(page_token=None): method _create_tables_get_result (line 293) | def _create_tables_get_result(num_rows=1, schema=None): method test_merged_parameters (line 303) | def test_merged_parameters(self): method test_resolve_parameters (line 366) | def test_resolve_parameters(self): FILE: tests/bigquery/sampling_tests.py class TestCases (line 19) | class TestCases(unittest.TestCase): method test_default (line 23) | def test_default(self): method test_default_custom_count (line 27) | def test_default_custom_count(self): method test_default_custom_fields (line 31) | def test_default_custom_fields(self): method test_default_all_fields (line 35) | def test_default_all_fields(self): method test_hashed (line 39) | def test_hashed(self): method test_hashed_and_limited (line 45) | def test_hashed_and_limited(self): method test_hashed_with_fields (line 51) | def test_hashed_with_fields(self): method test_sorted_ascending (line 57) | def test_sorted_ascending(self): method test_sorted_descending (line 61) | def test_sorted_descending(self): method test_sorted_with_fields (line 65) | def test_sorted_with_fields(self): method _apply_sampling (line 69) | def _apply_sampling(self, sampling, expected_query): FILE: tests/bigquery/schema_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_schema_from_dataframe (line 26) | def test_schema_from_dataframe(self): method test_schema_from_data (line 32) | def test_schema_from_data(self): method _create_data_frame (line 89) | def _create_data_frame(): method _create_inferred_schema (line 104) | def _create_inferred_schema(extra_field=None): FILE: tests/bigquery/table_tests.py class TestCases (line 29) | class TestCases(unittest.TestCase): method _check_name_parts (line 31) | def _check_name_parts(self, table): method test_api_paths (line 39) | def test_api_paths(self): method test_parse_full_name (line 49) | def test_parse_full_name(self): method test_parse_local_name (line 53) | def test_parse_local_name(self): method test_parse_dict_full_name (line 57) | def test_parse_dict_full_name(self): method test_parse_dict_local_name (line 63) | def test_parse_dict_local_name(self): method test_parse_named_tuple_name (line 67) | def test_parse_named_tuple_name(self): method test_parse_tuple_full_name (line 72) | def test_parse_tuple_full_name(self): method test_parse_tuple_local (line 76) | def test_parse_tuple_local(self): method test_parse_array_full_name (line 80) | def test_parse_array_full_name(self): method test_parse_array_local (line 84) | def test_parse_array_local(self): method test_parse_invalid_name (line 88) | def test_parse_invalid_name(self): method test_table_metadata (line 93) | def test_table_metadata(self, mock_api_tables_get): method test_table_schema (line 109) | def test_table_schema(self, mock_api_tables): method test_table_schema_nested (line 119) | def test_table_schema_nested(self, mock_api_tables): method test_malformed_response_raises_exception (line 135) | def test_malformed_response_raises_exception(self, mock_api_tables_get): method test_dataset_list (line 146) | def test_dataset_list(self, mock_api_datasets_get, mock_api_tables_list): method test_table_list (line 161) | def test_table_list(self, mock_api_datasets_get, mock_api_tables_list): method test_view_list (line 176) | def test_view_list(self, mock_api_datasets_get, mock_api_tables_list): method test_table_list_empty (line 190) | def test_table_list_empty(self, mock_api_datasets_get, mock_api_tables... method test_table_exists (line 203) | def test_table_exists(self, mock_api_tables_get): method test_tables_create (line 214) | def test_tables_create(self, method test_insert_no_table (line 238) | def test_insert_no_table(self, method test_insert_missing_field (line 268) | def test_insert_missing_field(self, method test_insert_mismatched_schema (line 301) | def test_insert_mismatched_schema(self, method test_insert_dataframe (line 336) | def test_insert_dataframe(self, method test_insert_dictlist (line 372) | def test_insert_dictlist(self, method test_insert_dictlist_index (line 412) | def test_insert_dictlist_index(self, method test_insert_dictlist_named_index (line 452) | def test_insert_dictlist_named_index(self, method test_table_load (line 488) | def test_table_load(self, mock_api_jobs_get, mock_api_jobs_insert_load... method test_table_extract (line 503) | def test_table_extract(self, mock_api_tables_get, mock_api_jobs_get, m... method test_table_to_dataframe (line 524) | def test_table_to_dataframe(self, mock_api_tables_get, mock_api_tabled... method test_encode_dict_as_row_datetime (line 543) | def test_encode_dict_as_row_datetime(self): method test_encode_dict_as_row_date (line 548) | def test_encode_dict_as_row_date(self): method test_encode_dict_as_row_time (line 553) | def test_encode_dict_as_row_time(self): method test_decorators (line 558) | def test_decorators(self): method test_window_decorators (line 612) | def test_window_decorators(self): method test_table_update (line 639) | def test_table_update(self, mock_api_table_update, mock_api_tables_get): method test_table_to_query (line 659) | def test_table_to_query(self): method test_row_fetcher (line 669) | def test_row_fetcher(self, mock_api_tables_get): method _create_context (line 693) | def _create_context(): method _create_table (line 699) | def _create_table(name): method _create_table_info_result (line 703) | def _create_table_info_result(ts=None): method _create_table_info_nested_schema_result (line 725) | def _create_table_info_nested_schema_result(ts=None): method _create_dataset (line 752) | def _create_dataset(dataset_id): method _create_table_list_result (line 756) | def _create_table_list_result(): method _create_table_list_empty_result (line 775) | def _create_table_list_empty_result(): method _create_data_frame (line 781) | def _create_data_frame(): method _create_inferred_schema (line 796) | def _create_inferred_schema(extra_field=None): method _create_table_with_schema (line 807) | def _create_table_with_schema(schema, name='test.testds.testTable0'): class _uuid (line 810) | class _uuid(object): method hex (line 812) | def hex(self): method _create_uuid (line 816) | def _create_uuid(): FILE: tests/bigquery/udf_tests.py class TestCases (line 21) | class TestCases(unittest.TestCase): method _create_udf (line 23) | def _create_udf(self, name='test_udf', code='console.log("test");', re... method test_building_udf (line 33) | def test_building_udf(self): method test_udf_bad_return_type (line 58) | def test_udf_bad_return_type(self): method test_udf_bad_params (line 62) | def test_udf_bad_params(self): method test_udf_params_order (line 66) | def test_udf_params_order(self): method test_udf_bad_imports (line 70) | def test_udf_bad_imports(self): method test_udf_imports_non_js (line 74) | def test_udf_imports_non_js(self): method test_query_with_udf (line 78) | def test_query_with_udf(self): method test_query_with_sql_udf (line 105) | def test_query_with_sql_udf(self): FILE: tests/bigquery/view_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method test_view_repr_sql (line 25) | def test_view_repr_sql(self): method test_view_create (line 34) | def test_view_create(self, method test_view_result (line 58) | def test_view_result(self, mock_api_tables_get, mock_api_jobs_get, moc... method test_view_update (line 84) | def test_view_update(self, mock_context_default, mock_api_table_update, method _create_tables_insert_success_result (line 113) | def _create_tables_insert_success_result(): method _create_insert_done_result (line 117) | def _create_insert_done_result(): method _create_tables_get_result (line 136) | def _create_tables_get_result(num_rows=1, schema=None): method _create_single_row_result (line 147) | def _create_single_row_result(): method _create_context (line 157) | def _create_context(): FILE: tests/context_tests.py class TestCases (line 22) | class TestCases(unittest.TestCase): method test_credentials (line 24) | def test_credentials(self): method test_config (line 34) | def test_config(self): method test_project (line 47) | def test_project(self): method test_default_project (line 64) | def test_default_project(self, mock_save_project_id, mock_get_default_... method test_is_signed_in (line 90) | def test_is_signed_in(self, mock_get_credentials): method test_default_context (line 101) | def test_default_context(self, mock_save_project_id, mock_get_default_... FILE: tests/integration/storage_test.py class StorageTest (line 16) | class StorageTest(unittest.TestCase): method setUp (line 18) | def setUp(self): method test_object_deletion_consistency (line 26) | def test_object_deletion_consistency(self): FILE: tests/kernel/bigquery_tests.py function noop_decorator (line 35) | def noop_decorator(func): class TestCases (line 45) | class TestCases(unittest.TestCase): method test_table_schema (line 47) | def test_table_schema(self): method test_udf_cell (line 117) | def test_udf_cell(self, mock_default_context, mock_notebook_environment): method test_datasource_cell (line 179) | def test_datasource_cell(self, mock_notebook_env): method test_query_cell (line 197) | def test_query_cell(self, mock_default_context, mock_notebook_environm... method test_execute_cell (line 243) | def test_execute_cell(self, mock_get_notebook_item, mock_query_execute... method _create_context (line 262) | def _create_context(): method test_sample_cell (line 271) | def test_sample_cell(self, mock_get_notebook_item, mock_context_default, method test_dry_run_cell (line 338) | def test_dry_run_cell(self, mock_get_query_argument, mock_context_defa... method test_get_table (line 354) | def test_get_table(self, mock_get_notebook_item, mock_table_exists, mo... method test_dataset_line_list (line 379) | def test_dataset_line_list(self, mock_render_list, mock_datasets, mock... method test_dataset_line_list_asterisk (line 389) | def test_dataset_line_list_asterisk(self, mock_render_list, mock_datas... method test_dataset_line_list_substr_filter (line 400) | def test_dataset_line_list_substr_filter(self, mock_render_list, mock_... method test_dataset_line_list_exact_filter (line 411) | def test_dataset_line_list_exact_filter(self, mock_render_list, mock_d... method test_dataset_line_list_project (line 422) | def test_dataset_line_list_project(self, mock_render_list, mock_datase... method test_dataset_line_create (line 430) | def test_dataset_line_create(self, mock_dataset, mock_default_context): method test_dataset_line_delete (line 443) | def test_dataset_line_delete(self, mock_dataset, mock_default_context): method test_table_cell_list (line 456) | def test_table_cell_list(self, mock_datasets, mock_default_context): method test_table_cell_list_asterisk (line 470) | def test_table_cell_list_asterisk(self, mock_datasets, mock_default_co... method test_table_cell_list_substr_filter (line 484) | def test_table_cell_list_substr_filter(self, mock_datasets, mock_defau... method test_table_cell_list_bad_filter (line 498) | def test_table_cell_list_bad_filter(self, mock_datasets, mock_default_... method test_table_cell_list_dataset (line 512) | def test_table_cell_list_dataset(self, mock_dataset, mock_default_cont... method test_table_cell_list_project (line 522) | def test_table_cell_list_project(self, mock_datasets, mock_default_con... method test_table_cell_list_dataset_project (line 536) | def test_table_cell_list_dataset_project(self, mock_dataset, mock_defa... method test_table_cell_create_bad_params (line 549) | def test_table_cell_create_bad_params(self, mock_table, mock_default_c... method test_table_cell_create (line 562) | def test_table_cell_create(self, mock_table, mock_default_context): method test_table_cell_describe (line 577) | def test_table_cell_describe(self, mock_get_table, mock_default_context): method test_table_cell_delete (line 596) | def test_table_cell_delete(self, mock_table, mock_default_context): method test_table_cell_view (line 605) | def test_table_cell_view(self, mock_get_table, mock_default_context): method test_extract_cell_query (line 618) | def test_extract_cell_query(self, mock_get_notebook_item, mock_query_e... method test_extract_cell_table (line 669) | def test_extract_cell_table(self, mock_get_notebook_item, mock_get_tab... method test_extract_cell_view (line 688) | def test_extract_cell_view(self, mock_get_notebook_item, mock_query_ex... method test_load_cell (line 709) | def test_load_cell(self, mock_get_table, mock_table_load, mock_table_e... method test_pipeline_cell (line 769) | def test_pipeline_cell(self, mock_env, mock_get_notebook_item, mock_bu... method test_table_viewer (line 805) | def test_table_viewer(self, mock_table_exists, mock_get_field_list, mo... method test_query_results_table_viewer (line 838) | def test_query_results_table_viewer(self, mock_table_exists, mock_get_... method test_args_to_context (line 895) | def test_args_to_context(self, mock_save_project, mock_get_default_pro... method test_get_query_argument (line 917) | def test_get_query_argument(self, mock_get_notebook_item): method test_get_query_parameters (line 943) | def test_get_query_parameters(self): FILE: tests/kernel/chart_data_tests.py function noop_decorator (line 24) | def noop_decorator(func): class TestCases (line 38) | class TestCases(unittest.TestCase): method test_get_chart_data (line 41) | def test_get_chart_data(self, mock_get_item): FILE: tests/kernel/chart_tests.py function noop_decorator (line 22) | def noop_decorator(func): class TestCases (line 36) | class TestCases(unittest.TestCase): method test_chart_cell (line 38) | def test_chart_cell(self): method test_chart_magic (line 51) | def test_chart_magic(self): FILE: tests/kernel/html_tests.py function noop_decorator (line 25) | def noop_decorator(func): class TestCases (line 35) | class TestCases(unittest.TestCase): method test_render_table (line 37) | def test_render_table(self): method test_render_text (line 73) | def test_render_text(self): FILE: tests/kernel/pipeline_tests.py function noop_decorator (line 27) | def noop_decorator(func): class TestCases (line 37) | class TestCases(unittest.TestCase): method _create_context (line 57) | def _create_context(): method test_create_cell_no_name (line 64) | def test_create_cell_no_name(self, mock_default_context, mock_notebook... method test_create_cell_debug (line 80) | def test_create_cell_debug(self, mock_default_context, mock_notebook_e... method test_create_cell_golden (line 101) | def test_create_cell_golden(self, mock_default_context, mock_notebook_... FILE: tests/kernel/storage_tests.py function noop_decorator (line 25) | def noop_decorator(func): class TestCases (line 40) | class TestCases(unittest.TestCase): method test_expand_list (line 46) | def test_expand_list(self, mock_context_default, mock_api_objects_get,... method test_gcs_copy (line 99) | def test_gcs_copy(self, mock_context_default, mock_api_objects_get, mo... method test_gcs_copy_magic (line 126) | def test_gcs_copy_magic(self, mock_gcs_copy): method test_gcs_create (line 137) | def test_gcs_create(self, mock_context_default, mock_api_buckets_insert): method test_gcs_delete (line 167) | def test_gcs_delete(self, mock_context_default, mock_api_bucket_delete, method test_gcs_view (line 197) | def test_gcs_view(self, mock_context_default): method test_gcs_write (line 203) | def test_gcs_write(self, mock_context_default): method _create_context (line 209) | def _create_context(): method _mock_bucket_objects_return (line 215) | def _mock_bucket_objects_return(context): method _mock_api_objects_get (line 235) | def _mock_api_objects_get(): method _mock_api_buckets_get (line 247) | def _mock_api_buckets_get(): FILE: tests/kernel/utils_tests.py class TestCases (line 40) | class TestCases(unittest.TestCase): method _get_expected_cols (line 43) | def _get_expected_cols(): method _timestamp (line 55) | def _timestamp(d): method _get_raw_rows (line 59) | def _get_raw_rows(): method _get_expected_rows (line 89) | def _get_expected_rows(): method _get_test_data_as_list_of_dicts (line 113) | def _get_test_data_as_list_of_dicts(): method test_get_data_from_list_of_dicts (line 134) | def test_get_data_from_list_of_dicts(self): method test_get_data_from_list_of_lists (line 142) | def test_get_data_from_list_of_lists(self): method test_get_data_from_dataframe (line 157) | def test_get_data_from_dataframe(self): method test_get_data_from_table (line 168) | def test_get_data_from_table(self, mock_context_default, mock_api_tabl... method test_get_data_from_empty_list (line 202) | def test_get_data_from_empty_list(self): method test_get_data_from_malformed_list (line 205) | def test_get_data_from_malformed_list(self): method _test_get_data (line 211) | def _test_get_data(self, test_data, cols, rows, expected_count, fn): method test_expand_var (line 260) | def test_expand_var(self): method test_replace_vars (line 271) | def test_replace_vars(self): method test_validate_config (line 286) | def test_validate_config(self): method test_validate_config_must_have (line 301) | def test_validate_config_must_have(self): method test_validate_config_has_one_of (line 309) | def test_validate_config_has_one_of(self): method test_validate_config_value (line 320) | def test_validate_config_value(self): method test_validate_gcs_path (line 326) | def test_validate_gcs_path(self): method test_parse_control_options_badtype (line 337) | def test_parse_control_options_badtype(self): method test_parse_control_options_set (line 342) | def test_parse_control_options_set(self): method test_parse_control_options_picker (line 362) | def test_parse_control_options_picker(self): method test_parse_control_options_textbox (line 383) | def test_parse_control_options_textbox(self): method test_parse_control_options_slider (line 398) | def test_parse_control_options_slider(self): method test_parse_control_options_checkbox (line 422) | def test_parse_control_options_checkbox(self): method _create_api (line 427) | def _create_api(): method _create_context (line 432) | def _create_context(): FILE: tests/main.py function parse_arguments (line 146) | def parse_arguments(argv): FILE: tests/ml/confusion_matrix_tests.py class TestConfusionMatrix (line 26) | class TestConfusionMatrix(unittest.TestCase): method setUp (line 29) | def setUp(self): method tearDown (line 32) | def tearDown(self): method test_from_csv (line 35) | def test_from_csv(self): method _create_csv_files (line 47) | def _create_csv_files(self, filenames, num_lines): FILE: tests/ml/dataset_tests.py class TestCsvDataSet (line 28) | class TestCsvDataSet(unittest.TestCase): method test_schema (line 30) | def test_schema(self): method test_sample_and_size (line 45) | def test_sample_and_size(self): method _create_csv_files (line 76) | def _create_csv_files(folder, filename, num_files, num_lines): method _create_json_schema (line 116) | def _create_json_schema(): class TestBigQueryDataSet (line 122) | class TestBigQueryDataSet(unittest.TestCase): method test_basics (line 124) | def test_basics(self): class TestTransformedDataSet (line 130) | class TestTransformedDataSet(unittest.TestCase): method test_basics (line 132) | def test_basics(self): FILE: tests/ml/facets_tests.py class TestFacets (line 22) | class TestFacets(unittest.TestCase): method _create_test_data (line 25) | def _create_test_data(self): method test_overview_plot (line 39) | def test_overview_plot(self): method test_dive_plot (line 50) | def test_dive_plot(self): FILE: tests/ml/metrics_tests.py class TestMetrics (line 26) | class TestMetrics(unittest.TestCase): method setUp (line 29) | def setUp(self): method tearDown (line 32) | def tearDown(self): method test_accuracy (line 35) | def test_accuracy(self): method test_precision_recall (line 51) | def test_precision_recall(self): method test_roc (line 66) | def test_roc(self): method test_rmse (line 84) | def test_rmse(self): method test_mae (line 93) | def test_mae(self): method test_percentile (line 102) | def test_percentile(self): method _create_classification_csv_files (line 113) | def _create_classification_csv_files(self, filenames, num_lines): method _create_classification_csv_files_with_probs (line 152) | def _create_classification_csv_files_with_probs(self, filename, num_li... method _create_regression_csv_file (line 164) | def _create_regression_csv_file(self): FILE: tests/ml/summary_tests.py class TestSummary (line 26) | class TestSummary(unittest.TestCase): method setUp (line 29) | def setUp(self): method tearDown (line 33) | def tearDown(self): method _create_events (line 36) | def _create_events(self): method test_list_events (line 63) | def test_list_events(self): method test_get_events (line 78) | def test_get_events(self): method test_plot_events (line 98) | def test_plot_events(self): FILE: tests/ml/tensorboard_tests.py class TestTensorboard (line 21) | class TestTensorboard(unittest.TestCase): method test_tensorboard (line 22) | def test_tensorboard(self): FILE: tests/ml_workbench/all_tests.py class RunTestScript (line 23) | class RunTestScript(unittest.TestCase): method __init__ (line 29) | def __init__(self, *args, **kwargs): method test_local (line 41) | def test_local(self): FILE: tests/mltoolbox_structured_data/sd_e2e_tests.py class TestLinearRegression (line 32) | class TestLinearRegression(e2e.TestLinearRegression): method __init__ (line 35) | def __init__(self, *args, **kwargs): FILE: tests/mltoolbox_structured_data/traininglib_tests.py class TestCoreTrainingLib (line 28) | class TestCoreTrainingLib(sdtraining.TestTrainer): method __init__ (line 40) | def __init__(self, *args, **kwargs): FILE: tests/mlworkbench_magic/archive_tests.py class TestArchive (line 27) | class TestArchive(unittest.TestCase): method setUp (line 30) | def setUp(self): method tearDown (line 42) | def tearDown(self): method test_extract_archive_targz (line 45) | def test_extract_archive_targz(self): method test_extract_archive_tar (line 66) | def test_extract_archive_tar(self): FILE: tests/mlworkbench_magic/explainer_tests.py function noop_decorator (line 37) | def noop_decorator(func): class TestMLExplainer (line 52) | class TestMLExplainer(unittest.TestCase): method setUp (line 55) | def setUp(self): method tearDown (line 66) | def tearDown(self): method _create_tabular_test_data (line 70) | def _create_tabular_test_data(self): method _create_text_test_data (line 133) | def _create_text_test_data(self): method _create_image_test_data (line 186) | def _create_image_test_data(self): method test_text_explainer (line 279) | def test_text_explainer(self): method test_image_explainer (line 299) | def test_image_explainer(self): method test_image_prober (line 318) | def test_image_prober(self): method test_tabular_explainer (line 338) | def test_tabular_explainer(self): FILE: tests/mlworkbench_magic/local_predict_tests.py class TestLocalPredictions (line 38) | class TestLocalPredictions(unittest.TestCase): method setUp (line 41) | def setUp(self): method tearDown (line 49) | def tearDown(self): method _create_model (line 52) | def _create_model(self, dir_name): method _create_test_data (line 111) | def _create_test_data(self, embedding_images=False, missing_values=Fal... method _validate_results (line 144) | def _validate_results(self, df, with_source, show_image): method test_predict (line 154) | def test_predict(self): method test_get_probs_for_labels (line 186) | def test_get_probs_for_labels(self): method test_get_probs_for_labels_topn_0 (line 205) | def test_get_probs_for_labels_topn_0(self): method _validate_schema_file (line 220) | def _validate_schema_file(self, output_dir): method test_batch_predict (line 231) | def test_batch_predict(self): FILE: tests/mlworkbench_magic/ml_tests.py function noop_decorator (line 26) | def noop_decorator(func): function find_key_value (line 41) | def find_key_value(arg_list, key, value): function find_key_endswith (line 49) | def find_key_endswith(arg_list, key, value): function find_startswith_endswith (line 57) | def find_startswith_endswith(arg_list, key, value): class TestMLMagic (line 65) | class TestMLMagic(unittest.TestCase): method test_analyze_csv_local (line 69) | def test_analyze_csv_local(self, popen_mock, run_and_monitor_mock): method test_transform_csv (line 103) | def test_transform_csv(self, popen_mock, run_and_monitor_mock): method test_train_csv (line 154) | def test_train_csv(self, popen_mock, submit_training_mock, method test_batch_predict_csv (line 194) | def test_batch_predict_csv(self, popen_mock, submit_batch_prediction_m... FILE: tests/mlworkbench_magic/shell_process_tests.py class TestShellProcess (line 30) | class TestShellProcess(unittest.TestCase): method setUp (line 33) | def setUp(self): method test_process (line 39) | def test_process(self): FILE: tests/pipeline/airflow_tests.py class TestCases (line 21) | class TestCases(unittest.TestCase): method _create_context (line 24) | def _create_context(): method test_deploy (line 31) | def test_deploy(self, mock_bucket_class, mock_default_context): FILE: tests/pipeline/composer_api_tests.py class TestCases (line 21) | class TestCases(unittest.TestCase): method validate (line 25) | def validate(self, mock_http_request, expected_url, expected_args=None... method test_environment_details_get (line 49) | def test_environment_details_get(self, mock_http_request, mock_context... method _create_context (line 57) | def _create_context(): FILE: tests/pipeline/composer_tests.py class TestCases (line 19) | class TestCases(unittest.TestCase): method test_deploy (line 24) | def test_deploy(self, mock_environment_details, mock_bucket_class, moc... method test_gcs_dag_location (line 65) | def test_gcs_dag_location(self, mock_environment_details): FILE: tests/pipeline/pipeline_tests.py class PipelineTest (line 30) | class PipelineTest(unittest.TestCase): method _create_context (line 52) | def _create_context(): method test_get_dependency_definition_single (line 57) | def test_get_dependency_definition_single(self): method test_get_dependency_definition_multiple (line 61) | def test_get_dependency_definition_multiple(self): method test_get_bash_operator_definition (line 65) | def test_get_bash_operator_definition(self): method test_get_bash_operator_definition_with_templates (line 75) | def test_get_bash_operator_definition_with_templates(self): method test_get_bq_execute_operator_definition (line 113) | def test_get_bq_execute_operator_definition(self, mock_table): method test_get_bq_extract_operator_definition (line 130) | def test_get_bq_extract_operator_definition(self, mock_table): method test_get_bq_load_operator_definition (line 153) | def test_get_bq_load_operator_definition(self, mock_table): method test_get_pydatalab_bq_load_operator_definition (line 174) | def test_get_pydatalab_bq_load_operator_definition(self): method test_get_pydatalab_bq_execute_operator_definition (line 211) | def test_get_pydatalab_bq_execute_operator_definition(self): method test_get_pydatalab_bq_extract_operator_definition (line 224) | def test_get_pydatalab_bq_extract_operator_definition(self): method test_get_unknown_operator_definition (line 240) | def test_get_unknown_operator_definition(self): method test_get_random_operator_class_name (line 251) | def test_get_random_operator_class_name(self): method test_get_dag_definition (line 255) | def test_get_dag_definition(self): method test_get_datetime_expr (line 264) | def test_get_datetime_expr(self): method test_get_default_args (line 273) | def test_get_default_args(self): method test_get_airflow_spec_with_default_schedule (line 304) | def test_get_airflow_spec_with_default_schedule(self): FILE: tests/stackdriver/commands/monitoring_tests.py class TestCases (line 27) | class TestCases(unittest.TestCase): method setUp (line 28) | def setUp(self): method test_make_context (line 32) | def test_make_context(self, mock_context_default): method test_make_context_empty_project (line 39) | def test_make_context_empty_project(self, mock_context_default): method test_monitoring_metrics_list (line 48) | def test_monitoring_metrics_list(self, mock_metric_descriptors, mock_r... method test_monitoring_resource_types_list (line 69) | def test_monitoring_resource_types_list(self, mock_resource_descriptor... method test_monitoring_groups_list (line 89) | def test_monitoring_groups_list(self, mock_groups, mock_render_dataframe, method _create_context (line 107) | def _create_context(project_id): FILE: tests/stackdriver/monitoring/group_tests.py class TestCases (line 35) | class TestCases(unittest.TestCase): method setUp (line 37) | def setUp(self): method test_constructor_minimal (line 42) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 52) | def test_constructor_maximal(self): method test_list (line 60) | def test_list(self, mock_api_list_groups): method test_list_w_pattern_match (line 72) | def test_list_w_pattern_match(self, mock_api_list_groups): method test_list_caching (line 83) | def test_list_caching(self, mock_gcloud_list_groups): method test_as_dataframe (line 94) | def test_as_dataframe(self, mock_gcloud_list_groups): method test_as_dataframe_w_all_args (line 113) | def test_as_dataframe_w_all_args(self, mock_gcloud_list_groups): method _create_context (line 125) | def _create_context(project_id): method _list_groups_get_result (line 130) | def _list_groups_get_result(context): FILE: tests/stackdriver/monitoring/metric_tests.py class TestCases (line 40) | class TestCases(unittest.TestCase): method setUp (line 42) | def setUp(self): method test_constructor_minimal (line 47) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 58) | def test_constructor_maximal(self): method test_list (line 71) | def test_list(self, mock_gcloud_list_descriptors): method test_list_w_api_filter (line 84) | def test_list_w_api_filter(self, mock_gcloud_list_descriptors): method test_list_w_pattern_match (line 103) | def test_list_w_pattern_match(self, mock_gcloud_list_descriptors): method test_list_caching (line 115) | def test_list_caching(self, mock_gcloud_list_descriptors): method test_as_dataframe (line 127) | def test_as_dataframe(self, mock_datalab_list_descriptors): method test_as_dataframe_w_all_args (line 148) | def test_as_dataframe_w_all_args(self, mock_datalab_list_descriptors): method _create_context (line 160) | def _create_context(project_id): method _list_metrics_get_result (line 165) | def _list_metrics_get_result(context): FILE: tests/stackdriver/monitoring/query_metadata_tests.py class TestCases (line 35) | class TestCases(unittest.TestCase): method setUp (line 37) | def setUp(self): method test_constructor (line 43) | def test_constructor(self, mock_query_iter): method test_iteration (line 55) | def test_iteration(self, mock_query_iter): method test_as_dataframe (line 66) | def test_as_dataframe(self, mock_query_iter): method test_as_dataframe_w_max_rows (line 96) | def test_as_dataframe_w_max_rows(self, mock_query_iter): method test_as_dataframe_w_no_data (line 125) | def test_as_dataframe_w_no_data(self, mock_query_iter): method _query_iter_get_result (line 134) | def _query_iter_get_result(): FILE: tests/stackdriver/monitoring/query_tests.py class TestCases (line 33) | class TestCases(unittest.TestCase): method setUp (line 35) | def setUp(self): method test_constructor_minimal (line 40) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 55) | def test_constructor_maximal(self): method test_metadata (line 76) | def test_metadata(self, mock_query_iter): FILE: tests/stackdriver/monitoring/resource_tests.py class TestCases (line 35) | class TestCases(unittest.TestCase): method setUp (line 37) | def setUp(self): method test_constructor_minimal (line 42) | def test_constructor_minimal(self, mock_context_default): method test_constructor_maximal (line 49) | def test_constructor_maximal(self): method test_list (line 59) | def test_list(self, mock_api_list_descriptors): method test_list_w_api_filter (line 71) | def test_list_w_api_filter(self, mock_api_list_descriptors): method test_list_w_pattern_match (line 85) | def test_list_w_pattern_match(self, mock_api_list_descriptors): method test_list_caching (line 96) | def test_list_caching(self, mock_gcloud_list_descriptors): method test_as_dataframe (line 108) | def test_as_dataframe(self, mock_datalab_list_descriptors): method test_as_dataframe_w_all_args (line 129) | def test_as_dataframe_w_all_args(self, mock_datalab_list_descriptors): method _create_context (line 142) | def _create_context(project_id): method _list_resources_get_result (line 147) | def _list_resources_get_result(): FILE: tests/stackdriver/monitoring/utils_tests.py class TestCases (line 22) | class TestCases(unittest.TestCase): method test_make_client (line 24) | def test_make_client(self): method test_make_client_w_defaults (line 31) | def test_make_client_w_defaults(self, mock_context_default): method _create_context (line 39) | def _create_context(): FILE: tests/storage/api_tests.py class TestCases (line 23) | class TestCases(unittest.TestCase): method validate (line 25) | def validate(self, mock_http_request, expected_url, expected_args=None... method test_buckets_insert (line 40) | def test_buckets_insert(self, mock_http_request): method test_buckets_delete (line 52) | def test_buckets_delete(self, mock_http_request): method test_buckets_get (line 59) | def test_buckets_get(self, mock_http_request): method test_buckets_list (line 69) | def test_buckets_list(self, mock_http_request): method test_object_download (line 81) | def test_object_download(self, mock_http_request): method test_object_upload (line 88) | def test_object_upload(self, mock_http_request): method test_objects_copy (line 96) | def test_objects_copy(self, mock_http_request): method test_objects_delete (line 104) | def test_objects_delete(self, mock_http_request): method test_objects_get (line 111) | def test_objects_get(self, mock_http_request): method test_objects_list (line 122) | def test_objects_list(self, mock_http_request): method test_objects_patch (line 135) | def test_objects_patch(self, mock_http_request): method _create_api (line 142) | def _create_api(): method _create_context (line 147) | def _create_context(): FILE: tests/storage/bucket_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_bucket_existence (line 27) | def test_bucket_existence(self, mock_api_buckets): method test_bucket_metadata (line 37) | def test_bucket_metadata(self, mock_api_buckets): method _create_bucket (line 46) | def _create_bucket(name='test_bucket'): method _create_context (line 50) | def _create_context(): method _create_buckets_get_result (line 56) | def _create_buckets_get_result(): FILE: tests/storage/object_tests.py class TestCases (line 24) | class TestCases(unittest.TestCase): method test_object_existence (line 28) | def test_object_existence(self, mock_api_objects_get, mock_api_objects... method test_object_metadata (line 39) | def test_object_metadata(self, mock_api_objects): method test_enumerate_objects_empty (line 50) | def test_enumerate_objects_empty(self, mock_api_objects): method test_enumerate_objects_single (line 59) | def test_enumerate_objects_single(self, mock_api_objects): method test_enumerate_objects_multi_page (line 69) | def test_enumerate_objects_multi_page(self, mock_api_objects): method test_object_delete_with_wait (line 83) | def test_object_delete_with_wait(self, mock_objects_list): method _create_bucket (line 116) | def _create_bucket(name='test_bucket'): method _create_context (line 120) | def _create_context(): method _create_objects_get_result (line 126) | def _create_objects_get_result(): method _create_enumeration_empty_result (line 130) | def _create_enumeration_empty_result(): method _create_enumeration_single_result (line 134) | def _create_enumeration_single_result(): method _create_enumeration_multipage_result1 (line 142) | def _create_enumeration_multipage_result1(): method _create_enumeration_multipage_result2 (line 151) | def _create_enumeration_multipage_result2():