code stringlengths 3 6.57k |
|---|
get_dataset(path) |
ObjectDetection.Dataset.from_voc(path) |
pytest.mark.skip(reason="ObjectDetector is not stable to test, and fails due to transient errors occasionally.") |
test_object_detection_estimator() |
get_dataset('https://autogluon.s3.amazonaws.com/datasets/tiny_motorbike.zip') |
dataset.random_split(val_size=0.3, test_size=0.2, random_state=0) |
ObjectDetection({'num_trials': 1, 'epochs': 1, 'batch_size': 4}) |
task.fit(train_data) |
task.fit_summary() |
get('valid_map', 0) |
detector.predict(test_data) |
pytest.mark.skip(reason="ObjectDetector is not stable to test, and fails due to transient errors occasionally.") |
test_object_detection_estimator_transfer() |
get_dataset('https://autogluon.s3.amazonaws.com/datasets/tiny_motorbike.zip') |
dataset.random_split(val_size=0.3, test_size=0.2, random_state=0) |
ObjectDetection({'num_trials': 1, 'epochs': 1, 'transfer': Categorical('yolo3_darknet53_coco', 'ssd_512_resnet50_v1_voc') |
task.fit(train_data) |
task.fit_summary() |
get('valid_map', 0) |
detector.predict(test_data) |
input_time_random() |
random.randint(300, 500) |
main() |
print("in main ") |
print(os.environ.get('PYPPETEER_CHROMIUM_REVISION') |
browser.newPage() |
page.setViewport({"width": 1000, "height": 780}) |
page.setUserAgent("Mozilla/5.0 (Windows NT 6.1; Win64; x64) |
page.goto('http://httpbin.net/ip') |
page.waitForNavigation({'waitUntil': 'load'}) |
page.content() |
page.cookies() |
page.screenshot({'path': 'example.png'}) |
page.evaluate('''() |
print(dimensions) |
browser.close() |
asyncio.get_event_loop() |
run_until_complete(main() |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api_yamdb.settings') |
get_wsgi_application() |
os.path.join(BASE_DIR, ...) |
os.path.dirname(os.path.dirname(os.path.abspath(__file__) |
os.path.join(BASE_DIR,'templates') |
os.path.join(BASE_DIR,'static') |
os.path.join(BASE_DIR,'static') |
os.path.join(BASE_DIR, 'db.sqlite3') |
files (CSS, JavaScript, Images) |
PreTrainingConfigs(BaseStepConfig) |
sort_stack_1(stack) |
s.Stack(stack.capacity, True) |
stack.is_empty() |
stack.pop() |
result.is_empty() |
int(result.peek() |
result.push(value) |
result.is_empty() |
int(result.peek() |
stack.push(result.pop() |
result.push(value) |
result.prettify() |
main() |
s.Stack(len(input_data) |
input_stack.push(x) |
s.Stack(len(expected_output_data) |
expected_output_stack.push(x) |
print("Input: \n" + str(input_stack.prettify() |
print("Expected: \n" + str(expected_output_stack.prettify() |
print("Output: \n" + str(sort_stack_1(input_stack) |
main() |
logging.getLogger(__name__) |
Encoder() |
Metadata(object) |
__init__(self) |
RLock() |
export_schema_as_string(self) |
join(ks.export_as_string() |
self.keyspaces.values() |
refresh(self, connection, timeout, target_type=None, change_type=None, **kwargs) |
self.get_host(connection.endpoint) |
self.get_host(connection.endpoint) |
get_schema_parser(connection, server_version, dse_version, timeout) |
self._rebuild_all(parser) |
target_type.lower() |
getattr(parser, 'get_' + tt_lower) |
parse_method(self.keyspaces, **kwargs) |
getattr(self, '_update_' + tt_lower) |
parser.get_types_map(self.keyspaces, **kwargs) |
self._update_keyspace(meta, user_types) |
update_method(meta) |
getattr(self, '_drop_' + tt_lower) |
drop_method(**kwargs) |
ValueError("Unknown schema target_type: '%s'" % target_type) |
_rebuild_all(self, parser) |
set() |
parser.get_all_keyspaces() |
current_keyspaces.add(keyspace_meta.name) |
self.keyspaces.get(keyspace_meta.name, None) |
self._keyspace_updated(keyspace_meta.name) |
self._keyspace_added(keyspace_meta.name) |
self.keyspaces.keys() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.