body
stringlengths
26
98.2k
body_hash
int64
-9,222,864,604,528,158,000
9,221,803,474B
docstring
stringlengths
1
16.8k
path
stringlengths
5
230
name
stringlengths
1
96
repository_name
stringlengths
7
89
lang
stringclasses
1 value
body_without_docstring
stringlengths
20
98.2k
def delete_namespaced_job(self, name, namespace, **kwargs): '\n delete a Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.delete_namespaced_job(name, namespace, async_req=True)\n >>...
-2,694,559,309,886,043,000
delete a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_job(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the Job (required) :param str namespace...
kubernetes/client/apis/batch_v1_api.py
delete_namespaced_job
MiaoRachelYu/python
python
def delete_namespaced_job(self, name, namespace, **kwargs): '\n delete a Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.delete_namespaced_job(name, namespace, async_req=True)\n >>...
def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): '\n delete a Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.delete_namespaced_job_with_http_info(name, namespac...
-8,098,088,110,390,845,000
delete a Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the Job (required) :para...
kubernetes/client/apis/batch_v1_api.py
delete_namespaced_job_with_http_info
MiaoRachelYu/python
python
def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): '\n delete a Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.delete_namespaced_job_with_http_info(name, namespac...
def get_api_resources(self, **kwargs): '\n get available resources\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.get_api_resources(async_req=True)\n >>> result = thread.get()\n\n ...
-340,951,253,249,199,000
get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() :param async_req bool :return: V1APIResourceList If the method is called asynchronously...
kubernetes/client/apis/batch_v1_api.py
get_api_resources
MiaoRachelYu/python
python
def get_api_resources(self, **kwargs): '\n get available resources\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.get_api_resources(async_req=True)\n >>> result = thread.get()\n\n ...
def get_api_resources_with_http_info(self, **kwargs): '\n get available resources\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.get_api_resources_with_http_info(async_req=True)\n >>>...
-5,848,708,895,557,926,000
get available resources This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: V1APIResourceList If the method is called...
kubernetes/client/apis/batch_v1_api.py
get_api_resources_with_http_info
MiaoRachelYu/python
python
def get_api_resources_with_http_info(self, **kwargs): '\n get available resources\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.get_api_resources_with_http_info(async_req=True)\n >>>...
def list_job_for_all_namespaces(self, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_job_for_all_namespaces(async_req=True)\n >>>...
-4,896,911,224,072,507,000
list or watch objects of kind Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_job_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool :param str _continue: The continue option should be se...
kubernetes/client/apis/batch_v1_api.py
list_job_for_all_namespaces
MiaoRachelYu/python
python
def list_job_for_all_namespaces(self, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_job_for_all_namespaces(async_req=True)\n >>>...
def list_job_for_all_namespaces_with_http_info(self, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_job_for_all_namespaces_with_http_inf...
-7,553,818,778,255,635,000
list or watch objects of kind Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_job_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str _continue: The continue opti...
kubernetes/client/apis/batch_v1_api.py
list_job_for_all_namespaces_with_http_info
MiaoRachelYu/python
python
def list_job_for_all_namespaces_with_http_info(self, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_job_for_all_namespaces_with_http_inf...
def list_namespaced_job(self, namespace, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_namespaced_job(namespace, async_req=True)\n ...
-8,123,203,867,841,701,000
list or watch objects of kind Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_job(namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str namespace: object name and auth scope, s...
kubernetes/client/apis/batch_v1_api.py
list_namespaced_job
MiaoRachelYu/python
python
def list_namespaced_job(self, namespace, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_namespaced_job(namespace, async_req=True)\n ...
def list_namespaced_job_with_http_info(self, namespace, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_namespaced_job_with_http_info(nam...
-3,838,151,148,503,006,700
list or watch objects of kind Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_job_with_http_info(namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str namespace: object name an...
kubernetes/client/apis/batch_v1_api.py
list_namespaced_job_with_http_info
MiaoRachelYu/python
python
def list_namespaced_job_with_http_info(self, namespace, **kwargs): '\n list or watch objects of kind Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.list_namespaced_job_with_http_info(nam...
def patch_namespaced_job(self, name, namespace, body, **kwargs): "\n partially update the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_namespaced_job(name, namespace, b...
675,484,736,674,713,500
partially update the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the Job (req...
kubernetes/client/apis/batch_v1_api.py
patch_namespaced_job
MiaoRachelYu/python
python
def patch_namespaced_job(self, name, namespace, body, **kwargs): "\n partially update the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_namespaced_job(name, namespace, b...
def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): "\n partially update the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_namespaced_job_wit...
-8,757,680,812,355,071,000
partially update the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name ...
kubernetes/client/apis/batch_v1_api.py
patch_namespaced_job_with_http_info
MiaoRachelYu/python
python
def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): "\n partially update the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_namespaced_job_wit...
def patch_namespaced_job_status(self, name, namespace, body, **kwargs): "\n partially update status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_namespaced_job_s...
1,816,886,749,744,125,400
partially update status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job_status(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :param str name: nam...
kubernetes/client/apis/batch_v1_api.py
patch_namespaced_job_status
MiaoRachelYu/python
python
def patch_namespaced_job_status(self, name, namespace, body, **kwargs): "\n partially update status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_namespaced_job_s...
def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): "\n partially update status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_n...
6,879,412,285,873,147,000
partially update status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :para...
kubernetes/client/apis/batch_v1_api.py
patch_namespaced_job_status_with_http_info
MiaoRachelYu/python
python
def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): "\n partially update status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.patch_n...
def read_namespaced_job(self, name, namespace, **kwargs): "\n read the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job(name, namespace, async_req=True)\n ...
8,608,870,038,711,187,000
read the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the Job (required) :param str n...
kubernetes/client/apis/batch_v1_api.py
read_namespaced_job
MiaoRachelYu/python
python
def read_namespaced_job(self, name, namespace, **kwargs): "\n read the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job(name, namespace, async_req=True)\n ...
def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): "\n read the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job_with_http_info(name, na...
-4,373,121,982,148,294,700
read the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the Job (require...
kubernetes/client/apis/batch_v1_api.py
read_namespaced_job_with_http_info
MiaoRachelYu/python
python
def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): "\n read the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job_with_http_info(name, na...
def read_namespaced_job_status(self, name, namespace, **kwargs): "\n read status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job_status(name, namespac...
-4,481,424,527,974,825,500
read status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job_status(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the Job (requi...
kubernetes/client/apis/batch_v1_api.py
read_namespaced_job_status
MiaoRachelYu/python
python
def read_namespaced_job_status(self, name, namespace, **kwargs): "\n read status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job_status(name, namespac...
def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): "\n read status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job_status...
8,040,640,776,958,956,000
read status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of...
kubernetes/client/apis/batch_v1_api.py
read_namespaced_job_status_with_http_info
MiaoRachelYu/python
python
def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): "\n read status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.read_namespaced_job_status...
def replace_namespaced_job(self, name, namespace, body, **kwargs): "\n replace the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_job(name, namespace, body, ...
1,828,721,135,564,521,500
replace the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the Job (required) ...
kubernetes/client/apis/batch_v1_api.py
replace_namespaced_job
MiaoRachelYu/python
python
def replace_namespaced_job(self, name, namespace, body, **kwargs): "\n replace the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_job(name, namespace, body, ...
def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): "\n replace the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_job_with_htt...
-3,535,187,599,020,698,000
replace the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of the ...
kubernetes/client/apis/batch_v1_api.py
replace_namespaced_job_with_http_info
MiaoRachelYu/python
python
def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): "\n replace the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_job_with_htt...
def replace_namespaced_job_status(self, name, namespace, body, **kwargs): "\n replace status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_job_status...
901,752,369,881,230,200
replace status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job_status(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :param str name: name of th...
kubernetes/client/apis/batch_v1_api.py
replace_namespaced_job_status
MiaoRachelYu/python
python
def replace_namespaced_job_status(self, name, namespace, body, **kwargs): "\n replace status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_job_status...
def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): "\n replace status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namesp...
-8,610,756,846,133,023,000
replace status of the specified Job This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() :param async_req bool :param str n...
kubernetes/client/apis/batch_v1_api.py
replace_namespaced_job_status_with_http_info
MiaoRachelYu/python
python
def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): "\n replace status of the specified Job\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namesp...
def _setup_training(self) -> None: '\n Setup the different steps to train a model:\n - check if all the data are given\n - create the proper strategy\n - create the features\n - prepare the model settings\n ' self._prepare_dataset() with self.args.strategy.s...
-995,004,629,150,649,300
Setup the different steps to train a model: - check if all the data are given - create the proper strategy - create the features - prepare the model settings
src/transformers/trainer_tf.py
_setup_training
52Pig/transformers
python
def _setup_training(self) -> None: '\n Setup the different steps to train a model:\n - check if all the data are given\n - create the proper strategy\n - create the features\n - prepare the model settings\n ' self._prepare_dataset() with self.args.strategy.s...
def _set_loss_and_metric(self) -> None: '\n Create the training loss and metric with their name. Allowed names are those listed\n in the Tensorflow documentation and those contained in the transformers library.\n ' try: self.loss = tf.keras.losses.get({'class_name': self.args.loss_n...
8,436,403,641,088,140,000
Create the training loss and metric with their name. Allowed names are those listed in the Tensorflow documentation and those contained in the transformers library.
src/transformers/trainer_tf.py
_set_loss_and_metric
52Pig/transformers
python
def _set_loss_and_metric(self) -> None: '\n Create the training loss and metric with their name. Allowed names are those listed\n in the Tensorflow documentation and those contained in the transformers library.\n ' try: self.loss = tf.keras.losses.get({'class_name': self.args.loss_n...
def _create_summary_writer(self) -> None: '\n Create a summary writer to be able to read the logs in Tensorboard.\n ' self.writer = tf.summary.create_file_writer(self.args.logging_dir)
6,580,074,118,470,670,000
Create a summary writer to be able to read the logs in Tensorboard.
src/transformers/trainer_tf.py
_create_summary_writer
52Pig/transformers
python
def _create_summary_writer(self) -> None: '\n \n ' self.writer = tf.summary.create_file_writer(self.args.logging_dir)
def _prepare_dataset(self) -> None: '\n Prepare the training, validation and test data.\n ' if (self.train_dataset is not None): self.num_train_examples = self.train_dataset.reduce(tf.constant(0), (lambda x, _: (x + 1))).numpy() if (self.args.max_steps > 0): self.train_...
-2,703,407,660,692,259,300
Prepare the training, validation and test data.
src/transformers/trainer_tf.py
_prepare_dataset
52Pig/transformers
python
def _prepare_dataset(self) -> None: '\n \n ' if (self.train_dataset is not None): self.num_train_examples = self.train_dataset.reduce(tf.constant(0), (lambda x, _: (x + 1))).numpy() if (self.args.max_steps > 0): self.train_steps = self.args.max_steps else: ...
def _create_optimizer(self) -> None: '\n Create the training optimizer with its name. Allowed names are those listed\n in the Tensorflow documentation and those contained in the transformers library.\n ' if (self.args.optimizer_name == 'adamw'): self.optimizer = create_optimizer(sel...
1,140,083,078,374,236,300
Create the training optimizer with its name. Allowed names are those listed in the Tensorflow documentation and those contained in the transformers library.
src/transformers/trainer_tf.py
_create_optimizer
52Pig/transformers
python
def _create_optimizer(self) -> None: '\n Create the training optimizer with its name. Allowed names are those listed\n in the Tensorflow documentation and those contained in the transformers library.\n ' if (self.args.optimizer_name == 'adamw'): self.optimizer = create_optimizer(sel...
def _create_checkpoint_manager(self, max_to_keep: int=5, load_model: bool=True) -> None: '\n Create a checkpoint manager in order to be able to make the training\n fault-tolerant.\n Args:\n max_to_keep: the maximum number of checkpoints to keep in the checkpoint path.\n load_m...
8,562,685,695,212,505,000
Create a checkpoint manager in order to be able to make the training fault-tolerant. Args: max_to_keep: the maximum number of checkpoints to keep in the checkpoint path. load_model: if we want to start the training from the latest checkpoint.
src/transformers/trainer_tf.py
_create_checkpoint_manager
52Pig/transformers
python
def _create_checkpoint_manager(self, max_to_keep: int=5, load_model: bool=True) -> None: '\n Create a checkpoint manager in order to be able to make the training\n fault-tolerant.\n Args:\n max_to_keep: the maximum number of checkpoints to keep in the checkpoint path.\n load_m...
@tf.function def _evaluate_steps(self, per_replica_features, per_replica_labels): '\n One step evaluation across replica.\n Args:\n per_replica_features: the batched features.\n per_replica_labels: the batched labels.\n Returns:\n The loss corresponding to the given b...
-4,422,511,022,122,007,000
One step evaluation across replica. Args: per_replica_features: the batched features. per_replica_labels: the batched labels. Returns: The loss corresponding to the given batch.
src/transformers/trainer_tf.py
_evaluate_steps
52Pig/transformers
python
@tf.function def _evaluate_steps(self, per_replica_features, per_replica_labels): '\n One step evaluation across replica.\n Args:\n per_replica_features: the batched features.\n per_replica_labels: the batched labels.\n Returns:\n The loss corresponding to the given b...
def evaluate(self, eval_dataset: Optional[tf.data.Dataset]=None, prediction_loss_only: Optional[bool]=None) -> Dict[(str, float)]: '\n Prediction/evaluation loop, shared by `evaluate()` and `predict()`.\n ' if (eval_dataset is None): eval_dataset = self.eval_dataset output = self._pred...
5,990,231,844,588,909,000
Prediction/evaluation loop, shared by `evaluate()` and `predict()`.
src/transformers/trainer_tf.py
evaluate
52Pig/transformers
python
def evaluate(self, eval_dataset: Optional[tf.data.Dataset]=None, prediction_loss_only: Optional[bool]=None) -> Dict[(str, float)]: '\n \n ' if (eval_dataset is None): eval_dataset = self.eval_dataset output = self._prediction_loop(eval_dataset, description='Evaluation') return outp...
def train(self) -> None: '\n Train method to train the model.\n ' if self.args.debug: tf.summary.trace_on(graph=True, profiler=True) self.gradient_accumulator.reset() iterations = self.optimizer.iterations if (iterations.numpy() > 0): logger.info('Start the training fro...
7,017,242,654,244,077,000
Train method to train the model.
src/transformers/trainer_tf.py
train
52Pig/transformers
python
def train(self) -> None: '\n \n ' if self.args.debug: tf.summary.trace_on(graph=True, profiler=True) self.gradient_accumulator.reset() iterations = self.optimizer.iterations if (iterations.numpy() > 0): logger.info('Start the training from the last checkpoint') ...
def _training_steps(self): '\n Returns a generator over training steps (i.e. parameters update).\n ' for (i, loss) in enumerate(self._accumulate_next_gradients()): if ((i % self.args.gradient_accumulation_steps) == 0): self._apply_gradients() (yield loss)
944,048,814,093,468,400
Returns a generator over training steps (i.e. parameters update).
src/transformers/trainer_tf.py
_training_steps
52Pig/transformers
python
def _training_steps(self): '\n \n ' for (i, loss) in enumerate(self._accumulate_next_gradients()): if ((i % self.args.gradient_accumulation_steps) == 0): self._apply_gradients() (yield loss)
@tf.function def _apply_gradients(self): 'Applies the gradients (cross-replica).' self.args.strategy.experimental_run_v2(self._step)
4,978,387,428,092,544,000
Applies the gradients (cross-replica).
src/transformers/trainer_tf.py
_apply_gradients
52Pig/transformers
python
@tf.function def _apply_gradients(self): self.args.strategy.experimental_run_v2(self._step)
def _step(self): 'Applies gradients and resets accumulation.' gradient_scale = (self.gradient_accumulator.step * self.args.strategy.num_replicas_in_sync) gradients = [(gradient / tf.cast(gradient_scale, gradient.dtype)) for gradient in self.gradient_accumulator.gradients] gradients = [tf.clip_by_value(g...
2,706,932,928,488,056,000
Applies gradients and resets accumulation.
src/transformers/trainer_tf.py
_step
52Pig/transformers
python
def _step(self): gradient_scale = (self.gradient_accumulator.step * self.args.strategy.num_replicas_in_sync) gradients = [(gradient / tf.cast(gradient_scale, gradient.dtype)) for gradient in self.gradient_accumulator.gradients] gradients = [tf.clip_by_value(grad, (- self.args.max_grad_norm), self.args....
def _accumulate_next_gradients(self): 'Accumulates the gradients from the next element in dataset.' iterator = iter(self.train_dataset) @tf.function def _accumulate_next(): (per_replica_features, per_replica_labels) = next(iterator) return self._accumulate_gradients(per_replica_features...
1,351,652,028,254,688,800
Accumulates the gradients from the next element in dataset.
src/transformers/trainer_tf.py
_accumulate_next_gradients
52Pig/transformers
python
def _accumulate_next_gradients(self): iterator = iter(self.train_dataset) @tf.function def _accumulate_next(): (per_replica_features, per_replica_labels) = next(iterator) return self._accumulate_gradients(per_replica_features, per_replica_labels) while True: try: ...
def _accumulate_gradients(self, per_replica_features, per_replica_labels): 'Accumulates the gradients across all the replica.' per_replica_loss = self.args.strategy.experimental_run_v2(self._forward, args=(per_replica_features, per_replica_labels)) try: reduced_loss = self.args.strategy.reduce(tf.di...
7,845,870,106,116,285,000
Accumulates the gradients across all the replica.
src/transformers/trainer_tf.py
_accumulate_gradients
52Pig/transformers
python
def _accumulate_gradients(self, per_replica_features, per_replica_labels): per_replica_loss = self.args.strategy.experimental_run_v2(self._forward, args=(per_replica_features, per_replica_labels)) try: reduced_loss = self.args.strategy.reduce(tf.distribute.ReduceOp.MEAN, per_replica_loss, axis=0) ...
def _forward(self, features, labels): 'Forwards a training example and accumulates the gradients.' (per_example_loss, _) = self._run_model(features, labels, True) gradients = tf.gradients(per_example_loss, self.model.trainable_variables) gradients = [(g if (g is not None) else tf.zeros_like(v)) for (g, ...
-3,476,753,415,646,999,600
Forwards a training example and accumulates the gradients.
src/transformers/trainer_tf.py
_forward
52Pig/transformers
python
def _forward(self, features, labels): (per_example_loss, _) = self._run_model(features, labels, True) gradients = tf.gradients(per_example_loss, self.model.trainable_variables) gradients = [(g if (g is not None) else tf.zeros_like(v)) for (g, v) in zip(gradients, self.model.trainable_variables)] se...
def _run_model(self, features, labels, training): '\n Computes the loss of the given features and labels pair.\n Args:\n features: the batched features.\n labels: the batched labels.\n training: run the model in training mode or not\n ' if ((self.args.mode == 'tex...
5,053,817,438,389,986,000
Computes the loss of the given features and labels pair. Args: features: the batched features. labels: the batched labels. training: run the model in training mode or not
src/transformers/trainer_tf.py
_run_model
52Pig/transformers
python
def _run_model(self, features, labels, training): '\n Computes the loss of the given features and labels pair.\n Args:\n features: the batched features.\n labels: the batched labels.\n training: run the model in training mode or not\n ' if ((self.args.mode == 'tex...
def predict(self, test_dataset: tf.data.Dataset) -> PredictionOutput: '\n Run prediction and return predictions and potential metrics.\n Depending on the dataset and your use case, your test dataset may contain labels.\n In that case, this method will also return metrics, like in evaluate().\n ...
8,778,713,418,168,482,000
Run prediction and return predictions and potential metrics. Depending on the dataset and your use case, your test dataset may contain labels. In that case, this method will also return metrics, like in evaluate(). Args: test_dataset: something similar to a PT Dataset. This is just temporary before to have a fram...
src/transformers/trainer_tf.py
predict
52Pig/transformers
python
def predict(self, test_dataset: tf.data.Dataset) -> PredictionOutput: '\n Run prediction and return predictions and potential metrics.\n Depending on the dataset and your use case, your test dataset may contain labels.\n In that case, this method will also return metrics, like in evaluate().\n ...
def save_model(self) -> None: '\n Save the pretrained model and create a Tensorflow saved model.\n ' logger.info('Saving model in {}'.format(self.args.output_dir)) path = os.path.join(self.args.output_dir, 'saved_model') logger.info('Saving model in {}'.format(path)) os.makedirs(path, ...
-6,240,600,897,507,889,000
Save the pretrained model and create a Tensorflow saved model.
src/transformers/trainer_tf.py
save_model
52Pig/transformers
python
def save_model(self) -> None: '\n \n ' logger.info('Saving model in {}'.format(self.args.output_dir)) path = os.path.join(self.args.output_dir, 'saved_model') logger.info('Saving model in {}'.format(path)) os.makedirs(path, exist_ok=True) self.model.save_pretrained(self.args.output...
@property def marker(self): "\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.unselected.Marker\n - A dict of string/value properties that will be passed\n to the Marker constructor\n \n ...
-4,245,806,239,186,361,300
The 'marker' property is an instance of Marker that may be specified as: - An instance of plotly.graph_objs.scattergeo.unselected.Marker - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: color Sets the marker color of u...
plotly/graph_objs/scattergeo/__init__.py
marker
Jonathan-MW/plotly.py
python
@property def marker(self): "\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.unselected.Marker\n - A dict of string/value properties that will be passed\n to the Marker constructor\n \n ...
@property def textfont(self): "\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.unselected.Textfont\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n ...
8,917,031,519,796,172,000
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of plotly.graph_objs.scattergeo.unselected.Textfont - A dict of string/value properties that will be passed to the Textfont constructor Supported dict properties: color Sets the text font...
plotly/graph_objs/scattergeo/__init__.py
textfont
Jonathan-MW/plotly.py
python
@property def textfont(self): "\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.unselected.Textfont\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n ...
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): '\n Construct a new Unselected object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Unselected\n ...
-6,556,748,513,909,606,000
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of plotly.graph_objs.scattergeo.Unselected marker plotly.graph_objs.scattergeo.unselected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scat...
plotly/graph_objs/scattergeo/__init__.py
__init__
Jonathan-MW/plotly.py
python
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): '\n Construct a new Unselected object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Unselected\n ...
@property def color(self): "\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n ...
-3,098,539,584,895,587,000
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, ...
plotly/graph_objs/scattergeo/__init__.py
color
Jonathan-MW/plotly.py
python
@property def color(self): "\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n ...
@property def colorsrc(self): "\n Sets the source reference on plot.ly for color .\n \n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['colorsrc']
-4,192,673,473,912,421,000
Sets the source reference on plot.ly for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
colorsrc
Jonathan-MW/plotly.py
python
@property def colorsrc(self): "\n Sets the source reference on plot.ly for color .\n \n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['colorsrc']
@property def family(self): '\n HTML font family - the typeface that will be applied by the web\n browser. The web browser will only be able to apply a font if\n it is available on the system which it operates. Provide\n multiple font families, separated by commas, to indicate the\n ...
-3,524,569,398,637,699,600
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. T...
plotly/graph_objs/scattergeo/__init__.py
family
Jonathan-MW/plotly.py
python
@property def family(self): '\n HTML font family - the typeface that will be applied by the web\n browser. The web browser will only be able to apply a font if\n it is available on the system which it operates. Provide\n multiple font families, separated by commas, to indicate the\n ...
@property def familysrc(self): "\n Sets the source reference on plot.ly for family .\n \n The 'familysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['familysrc']
4,272,517,766,265,763,300
Sets the source reference on plot.ly for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
familysrc
Jonathan-MW/plotly.py
python
@property def familysrc(self): "\n Sets the source reference on plot.ly for family .\n \n The 'familysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['familysrc']
@property def size(self): "\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n " return self[...
6,887,128,696,685,480,000
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
plotly/graph_objs/scattergeo/__init__.py
size
Jonathan-MW/plotly.py
python
@property def size(self): "\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n " return self[...
@property def sizesrc(self): "\n Sets the source reference on plot.ly for size .\n \n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['sizesrc']
8,585,030,508,644,112,000
Sets the source reference on plot.ly for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
sizesrc
Jonathan-MW/plotly.py
python
@property def sizesrc(self): "\n Sets the source reference on plot.ly for size .\n \n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['sizesrc']
def __init__(self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs): '\n Construct a new Textfont object\n \n Sets the text font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this const...
5,437,240,896,516,272,000
Construct a new Textfont object Sets the text font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of plotly.graph_objs.scattergeo.Textfont color colorsrc Sets the source reference on plot.ly for color . family HTML font family - the typeface that will b...
plotly/graph_objs/scattergeo/__init__.py
__init__
Jonathan-MW/plotly.py
python
def __init__(self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs): '\n Construct a new Textfont object\n \n Sets the text font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this const...
@property def maxpoints(self): "\n Sets the maximum number of points to keep on the plots from an\n incoming stream. If `maxpoints` is set to 50, only the newest\n 50 points will be displayed on the plot.\n \n The 'maxpoints' property is a number and may be specified as:\n - ...
6,188,310,185,754,620,000
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000] Returns ------- int|float
plotly/graph_objs/scattergeo/__init__.py
maxpoints
Jonathan-MW/plotly.py
python
@property def maxpoints(self): "\n Sets the maximum number of points to keep on the plots from an\n incoming stream. If `maxpoints` is set to 50, only the newest\n 50 points will be displayed on the plot.\n \n The 'maxpoints' property is a number and may be specified as:\n - ...
@property def token(self): "\n The stream id number links a data trace on a plot with a\n stream. See https://plot.ly/settings for more details.\n \n The 'token' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n ...
-6,778,178,393,472,647,000
The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
token
Jonathan-MW/plotly.py
python
@property def token(self): "\n The stream id number links a data trace on a plot with a\n stream. See https://plot.ly/settings for more details.\n \n The 'token' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n ...
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): '\n Construct a new Stream object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Stream\n max...
7,141,075,823,921,744,000
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of plotly.graph_objs.scattergeo.Stream maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50...
plotly/graph_objs/scattergeo/__init__.py
__init__
Jonathan-MW/plotly.py
python
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): '\n Construct a new Stream object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Stream\n max...
@property def marker(self): "\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.selected.Marker\n - A dict of string/value properties that will be passed\n to the Marker constructor\n \n ...
7,421,703,061,020,846,000
The 'marker' property is an instance of Marker that may be specified as: - An instance of plotly.graph_objs.scattergeo.selected.Marker - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: color Sets the marker color of sel...
plotly/graph_objs/scattergeo/__init__.py
marker
Jonathan-MW/plotly.py
python
@property def marker(self): "\n The 'marker' property is an instance of Marker\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.selected.Marker\n - A dict of string/value properties that will be passed\n to the Marker constructor\n \n ...
@property def textfont(self): "\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.selected.Textfont\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n \...
6,163,905,276,933,022,000
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of plotly.graph_objs.scattergeo.selected.Textfont - A dict of string/value properties that will be passed to the Textfont constructor Supported dict properties: color Sets the text font c...
plotly/graph_objs/scattergeo/__init__.py
textfont
Jonathan-MW/plotly.py
python
@property def textfont(self): "\n The 'textfont' property is an instance of Textfont\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.selected.Textfont\n - A dict of string/value properties that will be passed\n to the Textfont constructor\n \...
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): '\n Construct a new Selected object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Selected\n ...
189,164,675,801,328,930
Construct a new Selected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of plotly.graph_objs.scattergeo.Selected marker plotly.graph_objs.scattergeo.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scattergeo...
plotly/graph_objs/scattergeo/__init__.py
__init__
Jonathan-MW/plotly.py
python
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): '\n Construct a new Selected object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Selected\n ...
@property def autocolorscale(self): "\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.colorscale`. Has an effect only if in `marker.color`is\n set to a numerical array. In case `colorscale` is unspecified\n ...
8,397,201,591,515,050,000
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether ...
plotly/graph_objs/scattergeo/__init__.py
autocolorscale
Jonathan-MW/plotly.py
python
@property def autocolorscale(self): "\n Determines whether the colorscale is a default palette\n (`autocolorscale: true`) or the palette determined by\n `marker.colorscale`. Has an effect only if in `marker.color`is\n set to a numerical array. In case `colorscale` is unspecified\n ...
@property def cauto(self): "\n Determines whether or not the color domain is computed with\n respect to the input data (here in `marker.color`) or the\n bounds set in `marker.cmin` and `marker.cmax` Has an effect\n only if in `marker.color`is set to a numerical array. Defaults\n ...
-7,671,358,552,002,983,000
Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user. The 'cau...
plotly/graph_objs/scattergeo/__init__.py
cauto
Jonathan-MW/plotly.py
python
@property def cauto(self): "\n Determines whether or not the color domain is computed with\n respect to the input data (here in `marker.color`) or the\n bounds set in `marker.cmin` and `marker.cmax` Has an effect\n only if in `marker.color`is set to a numerical array. Defaults\n ...
@property def cmax(self): "\n Sets the upper bound of the color domain. Has an effect only if\n in `marker.color`is set to a numerical array. Value should have\n the same units as in `marker.color` and if set, `marker.cmin`\n must be set as well.\n \n The 'cmax' property is a n...
4,402,550,313,397,268,500
Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and may be specified as: - An int or float Returns ------- int|float
plotly/graph_objs/scattergeo/__init__.py
cmax
Jonathan-MW/plotly.py
python
@property def cmax(self): "\n Sets the upper bound of the color domain. Has an effect only if\n in `marker.color`is set to a numerical array. Value should have\n the same units as in `marker.color` and if set, `marker.cmin`\n must be set as well.\n \n The 'cmax' property is a n...
@property def cmid(self): "\n Sets the mid-point of the color domain by scaling `marker.cmin`\n and/or `marker.cmax` to be equidistant to this point. Has an\n effect only if in `marker.color`is set to a numerical array.\n Value should have the same units as in `marker.color`. Has no\n ...
-6,879,592,299,899,489,000
Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`. The 'cmid' property is a number ...
plotly/graph_objs/scattergeo/__init__.py
cmid
Jonathan-MW/plotly.py
python
@property def cmid(self): "\n Sets the mid-point of the color domain by scaling `marker.cmin`\n and/or `marker.cmax` to be equidistant to this point. Has an\n effect only if in `marker.color`is set to a numerical array.\n Value should have the same units as in `marker.color`. Has no\n ...
@property def cmin(self): "\n Sets the lower bound of the color domain. Has an effect only if\n in `marker.color`is set to a numerical array. Value should have\n the same units as in `marker.color` and if set, `marker.cmax`\n must be set as well.\n \n The 'cmin' property is a n...
7,058,444,409,272,556,000
Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and may be specified as: - An int or float Returns ------- int|float
plotly/graph_objs/scattergeo/__init__.py
cmin
Jonathan-MW/plotly.py
python
@property def cmin(self): "\n Sets the lower bound of the color domain. Has an effect only if\n in `marker.color`is set to a numerical array. Value should have\n the same units as in `marker.color` and if set, `marker.cmax`\n must be set as well.\n \n The 'cmin' property is a n...
@property def color(self): "\n Sets themarkercolor. It accepts either a specific color or an\n array of numbers that are mapped to the colorscale relative to\n the max and min values of the array or relative to\n `marker.cmin` and `marker.cmax` if set.\n \n The 'color' property...
-4,519,384,853,487,422,500
Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/r...
plotly/graph_objs/scattergeo/__init__.py
color
Jonathan-MW/plotly.py
python
@property def color(self): "\n Sets themarkercolor. It accepts either a specific color or an\n array of numbers that are mapped to the colorscale relative to\n the max and min values of the array or relative to\n `marker.cmin` and `marker.cmax` if set.\n \n The 'color' property...
@property def coloraxis(self): '\n Sets a reference to a shared color axis. References to these\n shared color axes are "coloraxis", "coloraxis2", "coloraxis3",\n etc. Settings for these shared color axes are set in the\n layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.\n ...
1,167,068,444,940,009,200
Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis. The 'col...
plotly/graph_objs/scattergeo/__init__.py
coloraxis
Jonathan-MW/plotly.py
python
@property def coloraxis(self): '\n Sets a reference to a shared color axis. References to these\n shared color axes are "coloraxis", "coloraxis2", "coloraxis3",\n etc. Settings for these shared color axes are set in the\n layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.\n ...
@property def colorbar(self): '\n The \'colorbar\' property is an instance of ColorBar\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.marker.ColorBar\n - A dict of string/value properties that will be passed\n to the ColorBar constructor\n \...
-2,189,857,872,392,623,900
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of plotly.graph_objs.scattergeo.marker.ColorBar - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties: bgcolor Sets the color of pa...
plotly/graph_objs/scattergeo/__init__.py
colorbar
Jonathan-MW/plotly.py
python
@property def colorbar(self): '\n The \'colorbar\' property is an instance of ColorBar\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.marker.ColorBar\n - A dict of string/value properties that will be passed\n to the ColorBar constructor\n \...
@property def colorscale(self): "\n Sets the colorscale. Has an effect only if in `marker.color`is\n set to a numerical array. The colorscale must be an array\n containing arrays mapping a normalized value to an rgb, rgba,\n hex, hsl, hsv, or named color string. At minimum, a mapping for...
-9,149,784,613,847,466,000
Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'r...
plotly/graph_objs/scattergeo/__init__.py
colorscale
Jonathan-MW/plotly.py
python
@property def colorscale(self): "\n Sets the colorscale. Has an effect only if in `marker.color`is\n set to a numerical array. The colorscale must be an array\n containing arrays mapping a normalized value to an rgb, rgba,\n hex, hsl, hsv, or named color string. At minimum, a mapping for...
@property def colorsrc(self): "\n Sets the source reference on plot.ly for color .\n \n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['colorsrc']
-4,192,673,473,912,421,000
Sets the source reference on plot.ly for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
colorsrc
Jonathan-MW/plotly.py
python
@property def colorsrc(self): "\n Sets the source reference on plot.ly for color .\n \n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['colorsrc']
@property def gradient(self): "\n The 'gradient' property is an instance of Gradient\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.marker.Gradient\n - A dict of string/value properties that will be passed\n to the Gradient constructor\n \n ...
1,551,385,271,055,478,300
The 'gradient' property is an instance of Gradient that may be specified as: - An instance of plotly.graph_objs.scattergeo.marker.Gradient - A dict of string/value properties that will be passed to the Gradient constructor Supported dict properties: color Sets the final color o...
plotly/graph_objs/scattergeo/__init__.py
gradient
Jonathan-MW/plotly.py
python
@property def gradient(self): "\n The 'gradient' property is an instance of Gradient\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.marker.Gradient\n - A dict of string/value properties that will be passed\n to the Gradient constructor\n \n ...
@property def line(self): '\n The \'line\' property is an instance of Line\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.marker.Line\n - A dict of string/value properties that will be passed\n to the Line constructor\n \n Support...
3,960,754,651,705,854,500
The 'line' property is an instance of Line that may be specified as: - An instance of plotly.graph_objs.scattergeo.marker.Line - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: autocolorscale Determines whether the colors...
plotly/graph_objs/scattergeo/__init__.py
line
Jonathan-MW/plotly.py
python
@property def line(self): '\n The \'line\' property is an instance of Line\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.marker.Line\n - A dict of string/value properties that will be passed\n to the Line constructor\n \n Support...
@property def opacity(self): "\n Sets the marker opacity.\n \n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|flo...
-2,368,020,270,502,072,000
Sets the marker opacity. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
plotly/graph_objs/scattergeo/__init__.py
opacity
Jonathan-MW/plotly.py
python
@property def opacity(self): "\n Sets the marker opacity.\n \n The 'opacity' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|flo...
@property def opacitysrc(self): "\n Sets the source reference on plot.ly for opacity .\n \n The 'opacitysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['opacitysrc']
2,076,524,803,020,138,800
Sets the source reference on plot.ly for opacity . The 'opacitysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
opacitysrc
Jonathan-MW/plotly.py
python
@property def opacitysrc(self): "\n Sets the source reference on plot.ly for opacity .\n \n The 'opacitysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['opacitysrc']
@property def reversescale(self): "\n Reverses the color mapping if true. Has an effect only if in\n `marker.color`is set to a numerical array. If true,\n `marker.cmin` will correspond to the last color in the array\n and `marker.cmax` will correspond to the first color.\n \n T...
6,328,202,226,544,627,000
Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False) Returns --...
plotly/graph_objs/scattergeo/__init__.py
reversescale
Jonathan-MW/plotly.py
python
@property def reversescale(self): "\n Reverses the color mapping if true. Has an effect only if in\n `marker.color`is set to a numerical array. If true,\n `marker.cmin` will correspond to the last color in the array\n and `marker.cmax` will correspond to the first color.\n \n T...
@property def showscale(self): "\n Determines whether or not a colorbar is displayed for this\n trace. Has an effect only if in `marker.color`is set to a\n numerical array.\n \n The 'showscale' property must be specified as a bool\n (either True, or False)\n\n Returns\n ...
3,057,608,871,260,698,600
Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. The 'showscale' property must be specified as a bool (either True, or False) Returns ------- bool
plotly/graph_objs/scattergeo/__init__.py
showscale
Jonathan-MW/plotly.py
python
@property def showscale(self): "\n Determines whether or not a colorbar is displayed for this\n trace. Has an effect only if in `marker.color`is set to a\n numerical array.\n \n The 'showscale' property must be specified as a bool\n (either True, or False)\n\n Returns\n ...
@property def size(self): "\n Sets the marker size (in px).\n \n The 'size' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|fl...
4,148,300,277,957,588,500
Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
plotly/graph_objs/scattergeo/__init__.py
size
Jonathan-MW/plotly.py
python
@property def size(self): "\n Sets the marker size (in px).\n \n The 'size' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|fl...
@property def sizemin(self): "\n Has an effect only if `marker.size` is set to a numerical\n array. Sets the minimum size (in px) of the rendered marker\n points.\n \n The 'sizemin' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n...
7,459,494,275,914,576,000
Has an effect only if `marker.size` is set to a numerical array. Sets the minimum size (in px) of the rendered marker points. The 'sizemin' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
plotly/graph_objs/scattergeo/__init__.py
sizemin
Jonathan-MW/plotly.py
python
@property def sizemin(self): "\n Has an effect only if `marker.size` is set to a numerical\n array. Sets the minimum size (in px) of the rendered marker\n points.\n \n The 'sizemin' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n...
@property def sizemode(self): "\n Has an effect only if `marker.size` is set to a numerical\n array. Sets the rule for which the data in `size` is converted\n to pixels.\n \n The 'sizemode' property is an enumeration that may be specified as:\n - One of the following enumerat...
2,682,637,820,718,035,500
Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. The 'sizemode' property is an enumeration that may be specified as: - One of the following enumeration values: ['diameter', 'area'] Returns ------- Any
plotly/graph_objs/scattergeo/__init__.py
sizemode
Jonathan-MW/plotly.py
python
@property def sizemode(self): "\n Has an effect only if `marker.size` is set to a numerical\n array. Sets the rule for which the data in `size` is converted\n to pixels.\n \n The 'sizemode' property is an enumeration that may be specified as:\n - One of the following enumerat...
@property def sizeref(self): "\n Has an effect only if `marker.size` is set to a numerical\n array. Sets the scale factor used to determine the rendered\n size of marker points. Use with `sizemin` and `sizemode`.\n \n The 'sizeref' property is a number and may be specified as:\n ...
-7,085,534,774,129,704,000
Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An int or float Returns ------- int|float
plotly/graph_objs/scattergeo/__init__.py
sizeref
Jonathan-MW/plotly.py
python
@property def sizeref(self): "\n Has an effect only if `marker.size` is set to a numerical\n array. Sets the scale factor used to determine the rendered\n size of marker points. Use with `sizemin` and `sizemode`.\n \n The 'sizeref' property is a number and may be specified as:\n ...
@property def sizesrc(self): "\n Sets the source reference on plot.ly for size .\n \n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['sizesrc']
8,585,030,508,644,112,000
Sets the source reference on plot.ly for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
sizesrc
Jonathan-MW/plotly.py
python
@property def sizesrc(self): "\n Sets the source reference on plot.ly for size .\n \n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['sizesrc']
@property def symbol(self): '\n Sets the marker symbol type. Adding 100 is equivalent to\n appending "-open" to a symbol name. Adding 200 is equivalent to\n appending "-dot" to a symbol name. Adding 300 is equivalent to\n appending "-open-dot" or "dot-open" to a symbol name.\n \n ...
4,035,250,182,230,725,000
Sets the marker symbol type. Adding 100 is equivalent to appending "-open" to a symbol name. Adding 200 is equivalent to appending "-dot" to a symbol name. Adding 300 is equivalent to appending "-open-dot" or "dot-open" to a symbol name. The 'symbol' property is an enumeration that may be specified as: - One of the ...
plotly/graph_objs/scattergeo/__init__.py
symbol
Jonathan-MW/plotly.py
python
@property def symbol(self): '\n Sets the marker symbol type. Adding 100 is equivalent to\n appending "-open" to a symbol name. Adding 200 is equivalent to\n appending "-dot" to a symbol name. Adding 300 is equivalent to\n appending "-open-dot" or "dot-open" to a symbol name.\n \n ...
@property def symbolsrc(self): "\n Sets the source reference on plot.ly for symbol .\n \n The 'symbolsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['symbolsrc']
-6,024,676,400,931,487,000
Sets the source reference on plot.ly for symbol . The 'symbolsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
symbolsrc
Jonathan-MW/plotly.py
python
@property def symbolsrc(self): "\n Sets the source reference on plot.ly for symbol .\n \n The 'symbolsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['symbolsrc']
def __init__(self, arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, gradient=None, line=None, opacity=None, opacitysrc=None, reversescale=None, showscale=None, size=None, sizemin=None, sizemode=None, sizeref=None, size...
-4,541,378,795,674,928,000
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of plotly.graph_objs.scattergeo.Marker autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.color...
plotly/graph_objs/scattergeo/__init__.py
__init__
Jonathan-MW/plotly.py
python
def __init__(self, arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, gradient=None, line=None, opacity=None, opacitysrc=None, reversescale=None, showscale=None, size=None, sizemin=None, sizemode=None, sizeref=None, size...
@property def color(self): "\n Sets the line color.\n \n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string...
-4,622,030,073,859,431,000
Sets the line color. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aqu...
plotly/graph_objs/scattergeo/__init__.py
color
Jonathan-MW/plotly.py
python
@property def color(self): "\n Sets the line color.\n \n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string...
@property def dash(self): '\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n \n The \'dash\' property is an enumeration that may be specified ...
-7,424,793,383,219,417,000
Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). The 'dash' property is an enumeration that may be specified as: - One of the following dash styles: ['solid', 'dot', 'dash', 'longdash...
plotly/graph_objs/scattergeo/__init__.py
dash
Jonathan-MW/plotly.py
python
@property def dash(self): '\n Sets the dash style of lines. Set to a dash type string\n ("solid", "dot", "dash", "longdash", "dashdot", or\n "longdashdot") or a dash length list in px (eg\n "5px,10px,2px,2px").\n \n The \'dash\' property is an enumeration that may be specified ...
@property def width(self): "\n Sets the line width (in px).\n \n The 'width' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n " return self['width']
-1,699,504,145,934,547,700
Sets the line width (in px). The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
plotly/graph_objs/scattergeo/__init__.py
width
Jonathan-MW/plotly.py
python
@property def width(self): "\n Sets the line width (in px).\n \n The 'width' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n " return self['width']
def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): '\n Construct a new Line object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Line\n ...
8,805,425,881,314,854,000
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of plotly.graph_objs.scattergeo.Line color Sets the line color. dash Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or ...
plotly/graph_objs/scattergeo/__init__.py
__init__
Jonathan-MW/plotly.py
python
def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): '\n Construct a new Line object\n \n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of plotly.graph_objs.scattergeo.Line\n ...
@property def align(self): "\n Sets the horizontal alignment of the text content within hover\n label box. Has an effect only if the hover label text spans\n more two or more lines\n \n The 'align' property is an enumeration that may be specified as:\n - One of the following ...
-7,126,462,146,178,984,000
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['left', 'right', 'auto'] - A tuple, list, or one-dim...
plotly/graph_objs/scattergeo/__init__.py
align
Jonathan-MW/plotly.py
python
@property def align(self): "\n Sets the horizontal alignment of the text content within hover\n label box. Has an effect only if the hover label text spans\n more two or more lines\n \n The 'align' property is an enumeration that may be specified as:\n - One of the following ...
@property def alignsrc(self): "\n Sets the source reference on plot.ly for align .\n \n The 'alignsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['alignsrc']
3,193,618,158,748,979,700
Sets the source reference on plot.ly for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
alignsrc
Jonathan-MW/plotly.py
python
@property def alignsrc(self): "\n Sets the source reference on plot.ly for align .\n \n The 'alignsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['alignsrc']
@property def bgcolor(self): "\n Sets the background color of the hover labels for this trace\n \n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0...
-5,479,036,764,658,648,000
Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
plotly/graph_objs/scattergeo/__init__.py
bgcolor
Jonathan-MW/plotly.py
python
@property def bgcolor(self): "\n Sets the background color of the hover labels for this trace\n \n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0...
@property def bgcolorsrc(self): "\n Sets the source reference on plot.ly for bgcolor .\n \n The 'bgcolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['bgcolorsrc']
1,430,722,777,616,976,100
Sets the source reference on plot.ly for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
bgcolorsrc
Jonathan-MW/plotly.py
python
@property def bgcolorsrc(self): "\n Sets the source reference on plot.ly for bgcolor .\n \n The 'bgcolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['bgcolorsrc']
@property def bordercolor(self): "\n Sets the border color of the hover labels for this trace.\n \n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. '...
-6,449,970,727,678,226,000
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color:...
plotly/graph_objs/scattergeo/__init__.py
bordercolor
Jonathan-MW/plotly.py
python
@property def bordercolor(self): "\n Sets the border color of the hover labels for this trace.\n \n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. '...
@property def bordercolorsrc(self): "\n Sets the source reference on plot.ly for bordercolor .\n \n The 'bordercolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['bordercolorsr...
7,110,519,896,490,883,000
Sets the source reference on plot.ly for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
bordercolorsrc
Jonathan-MW/plotly.py
python
@property def bordercolorsrc(self): "\n Sets the source reference on plot.ly for bordercolor .\n \n The 'bordercolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['bordercolorsr...
@property def font(self): '\n Sets the font used in hover labels.\n \n The \'font\' property is an instance of Font\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.hoverlabel.Font\n - A dict of string/value properties that will be passed\n ...
-3,951,941,290,926,129,700
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of plotly.graph_objs.scattergeo.hoverlabel.Font - A dict of string/value properties that will be passed to the Font constructor Supported dict properties: color ...
plotly/graph_objs/scattergeo/__init__.py
font
Jonathan-MW/plotly.py
python
@property def font(self): '\n Sets the font used in hover labels.\n \n The \'font\' property is an instance of Font\n that may be specified as:\n - An instance of plotly.graph_objs.scattergeo.hoverlabel.Font\n - A dict of string/value properties that will be passed\n ...
@property def namelength(self): "\n Sets the default length (in number of characters) of the trace\n name in the hover labels for all traces. -1 shows the whole\n name regardless of length. 0-3 shows the first 0-3 characters,\n and an integer >3 will show the whole name if it is less tha...
2,082,155,897,422,349,300
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength ...
plotly/graph_objs/scattergeo/__init__.py
namelength
Jonathan-MW/plotly.py
python
@property def namelength(self): "\n Sets the default length (in number of characters) of the trace\n name in the hover labels for all traces. -1 shows the whole\n name regardless of length. 0-3 shows the first 0-3 characters,\n and an integer >3 will show the whole name if it is less tha...
@property def namelengthsrc(self): "\n Sets the source reference on plot.ly for namelength .\n \n The 'namelengthsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['namelengthsrc']
4,919,275,048,233,846,000
Sets the source reference on plot.ly for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
plotly/graph_objs/scattergeo/__init__.py
namelengthsrc
Jonathan-MW/plotly.py
python
@property def namelengthsrc(self): "\n Sets the source reference on plot.ly for namelength .\n \n The 'namelengthsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n " return self['namelengthsrc']
def __init__(self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs): '\n Construct a new Hoverlabel object\n \n Parameters\n ----------\n arg\n dict of pr...
-8,548,297,225,215,319,000
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of plotly.graph_objs.scattergeo.Hoverlabel align Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans ...
plotly/graph_objs/scattergeo/__init__.py
__init__
Jonathan-MW/plotly.py
python
def __init__(self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs): '\n Construct a new Hoverlabel object\n \n Parameters\n ----------\n arg\n dict of pr...
def log(action, *args, **kw): '\n e.g. amo.log(amo.LOG.CREATE_ADDON, []),\n amo.log(amo.LOG.ADD_FILE_TO_VERSION, file, version)\n ' from amo import get_user, logger_log from mkt.developers.models import ActivityLog, ActivityLogAttachment, AppLog, CommentLog, GroupLog, UserLog, VersionLog f...
-3,370,312,568,555,220,500
e.g. amo.log(amo.LOG.CREATE_ADDON, []), amo.log(amo.LOG.ADD_FILE_TO_VERSION, file, version)
apps/amo/log.py
log
muffinresearch/zamboni
python
def log(action, *args, **kw): '\n e.g. amo.log(amo.LOG.CREATE_ADDON, []),\n amo.log(amo.LOG.ADD_FILE_TO_VERSION, file, version)\n ' from amo import get_user, logger_log from mkt.developers.models import ActivityLog, ActivityLogAttachment, AppLog, CommentLog, GroupLog, UserLog, VersionLog f...
def getTestMethod(vb): 'Create a test method' def testMethod(self): try: buildParseTree(vb, dialect='vb.net') except VBParserError: raise Exception(('Unable to parse ...\n%s' % vb)) return testMethod
6,359,892,563,676,321,000
Create a test method
vb2py/test/testdotnet.py
getTestMethod
ceprio/xl_vb2py
python
def getTestMethod(vb): def testMethod(self): try: buildParseTree(vb, dialect='vb.net') except VBParserError: raise Exception(('Unable to parse ...\n%s' % vb)) return testMethod
def find_tmc_devices(vendor=None, product=None, serial_number=None, custom_match=None, **kwargs): 'Find connected USBTMC devices. See usbutil.find_devices for more info.\n\n ' def is_usbtmc(dev): if (custom_match and (not custom_match(dev))): return False return bool(find_interfa...
-3,050,417,852,705,620,000
Find connected USBTMC devices. See usbutil.find_devices for more info.
pyvisa-py/protocols/usbtmc.py
find_tmc_devices
circuitfox/pyvisa-py
python
def find_tmc_devices(vendor=None, product=None, serial_number=None, custom_match=None, **kwargs): '\n\n ' def is_usbtmc(dev): if (custom_match and (not custom_match(dev))): return False return bool(find_interfaces(dev, bInterfaceClass=254, bInterfaceSubClass=3)) return find_d...
@classmethod def from_quirky(cls, data): 'Constructs a correct response for quirky devices' (msgid, btag, btaginverse) = struct.unpack_from('BBBx', data) data = data.rstrip(b'\x00') if (';' in str(data)): (transfer_size, transfer_attributes) = struct.unpack_from('<LBxxx', data, 4) data =...
-6,306,606,062,144,896,000
Constructs a correct response for quirky devices
pyvisa-py/protocols/usbtmc.py
from_quirky
circuitfox/pyvisa-py
python
@classmethod def from_quirky(cls, data): (msgid, btag, btaginverse) = struct.unpack_from('BBBx', data) data = data.rstrip(b'\x00') if (';' in str(data)): (transfer_size, transfer_attributes) = struct.unpack_from('<LBxxx', data, 4) data = data[12:] else: transfer_size = 0 ...
@staticmethod def build_array(btag, transfer_size, term_char=None): '\n\n :param transfer_size:\n :param btag:\n :param term_char:\n :return:\n ' if (term_char is None): transfer_attributes = 0 term_char = 0 else: transfer_attributes = 2 return ...
6,151,967,743,317,589,000
:param transfer_size: :param btag: :param term_char: :return:
pyvisa-py/protocols/usbtmc.py
build_array
circuitfox/pyvisa-py
python
@staticmethod def build_array(btag, transfer_size, term_char=None): '\n\n :param transfer_size:\n :param btag:\n :param term_char:\n :return:\n ' if (term_char is None): transfer_attributes = 0 term_char = 0 else: transfer_attributes = 2 return ...
def write(self, data): 'Send raw bytes to the instrument.\n\n :param data: bytes to be sent to the instrument\n :type data: bytes\n ' try: return self.usb_send_ep.write(data) except usb.core.USBError as e: raise ValueError(str(e))
5,437,309,802,308,429,000
Send raw bytes to the instrument. :param data: bytes to be sent to the instrument :type data: bytes
pyvisa-py/protocols/usbtmc.py
write
circuitfox/pyvisa-py
python
def write(self, data): 'Send raw bytes to the instrument.\n\n :param data: bytes to be sent to the instrument\n :type data: bytes\n ' try: return self.usb_send_ep.write(data) except usb.core.USBError as e: raise ValueError(str(e))
def read(self, size): 'Receive raw bytes to the instrument.\n\n :param size: number of bytes to receive\n :return: received bytes\n :return type: bytes\n ' if (size <= 0): size = 1 data = array_to_bytes(self.usb_recv_ep.read(size, self.timeout)) return data
6,909,853,885,350,742,000
Receive raw bytes to the instrument. :param size: number of bytes to receive :return: received bytes :return type: bytes
pyvisa-py/protocols/usbtmc.py
read
circuitfox/pyvisa-py
python
def read(self, size): 'Receive raw bytes to the instrument.\n\n :param size: number of bytes to receive\n :return: received bytes\n :return type: bytes\n ' if (size <= 0): size = 1 data = array_to_bytes(self.usb_recv_ep.read(size, self.timeout)) return data
def _abort_bulk_in(self, btag): 'Request that the device abort a pending Bulk-IN operation.' abort_timeout_ms = 5000 data = self.usb_dev.ctrl_transfer(usb.util.build_request_type(usb.util.CTRL_IN, usb.util.CTRL_TYPE_CLASS, usb.util.CTRL_RECIPIENT_ENDPOINT), Request.initiate_abort_bulk_in, btag, self.usb_rec...
-9,008,425,439,862,839,000
Request that the device abort a pending Bulk-IN operation.
pyvisa-py/protocols/usbtmc.py
_abort_bulk_in
circuitfox/pyvisa-py
python
def _abort_bulk_in(self, btag): abort_timeout_ms = 5000 data = self.usb_dev.ctrl_transfer(usb.util.build_request_type(usb.util.CTRL_IN, usb.util.CTRL_TYPE_CLASS, usb.util.CTRL_RECIPIENT_ENDPOINT), Request.initiate_abort_bulk_in, btag, self.usb_recv_ep.bEndpointAddress, 2, timeout=abort_timeout_ms) if (...