code stringlengths 3 6.57k |
|---|
oda_update(dF, dD, dE) |
np.sum(dF * dD) |
get_fock_uhf(H, g, Ds) |
get_JK_uhf(len(g.shape) |
diis_update_uhf(F_prev_lists, r_prev_lists) |
diis_solver_uhf(r_prev_lists[0], r_prev_lists[1]) |
enumerate(F_prev_lists[0]) |
enumerate(F_prev_lists[1]) |
oda_update_uhf(dFs, dDs, dE) |
type(dFs) |
Exception("arg1 and arg2 are list of alpha/beta matrices.") |
np.sum(dFs[0] * dDs[0] + dFs[1] * dDs[1]) |
diag(F, A) |
np.linalg.eigh(Fp) |
get_SCF_err(S, D, F) |
np.mean(err_v ** 2) |
get_SCF_energy(H, F, D, unrestricted) |
type(F) |
type(D) |
Exception("For UHF, F and D must have type list.") |
np.sum(Dtot * H + Da * Fa + Db * Fb) |
np.sum((H + F) |
xform_2(H, A) |
len(H.shape) |
Exception("Dimension error: arg1 should be a matrix") |
xform_4(g, A) |
len(g.shape) |
np.einsum("pi, qj, pqrs, rk, sl -> ijkl", A, A, g, A, A, optimize=True) |
xform.xform_4_np(g, A) |
pytest.mark.parametrize("data, headers", params) |
test_schema(app_users, snapshot, data, headers) |
assert_query(app_users, snapshot, data, headers) |
files (the "Software") |
open("requirements.txt", "r") |
line.strip() |
Stokes (HANS) |
find_packages() |
Copyright (c) |
CVATMultilabelAttributesRecognitionConverter(FileBasedAnnotationConverter) |
parameters(cls) |
super() |
parameters() |
StringField(description='specific label for attribute collection') |
configure(self) |
super() |
configure() |
self.get_value_from_config('label') |
self.get_value_from_config('images_dir') |
convert(self, check_content=False, progress_callback=None, progress_interval=100, **kwargs) |
read_xml(self.annotation_file) |
annotation.find('meta') |
int(meta.find('task') |
find('size') |
self.select_label(meta) |
attribute.find('name') |
enumerate(label.iter('attribute') |
len(label_to_id) |
enumerate(annotation.iter('image') |
split('/') |
check_file_existence(self.images_dir / identifier) |
content_errors.append('{}: does not exist'.format(self.images_dir / identifier) |
bbox.attrib.keys() |
float(bbox.attrib['xtl']) |
float(bbox.attrib['ytl']) |
float(bbox.attrib['xbr']) |
float(bbox.attrib['ybr']) |
np.ones(num_attributes) |
bbox.iter('attribute') |
MultiLabelRecognitionAnnotation(identifier, attributes) |
annotations.append(attributes_annotation) |
progress_callback(image_id * 100 / size) |
ConverterReturn(annotations, self.generate_meta(label_to_id) |
generate_meta(attribute_values_mapping) |
attribute_values_mapping.items() |
select_label(self, meta) |
meta.iter('label') |
label.find('name') |
ConfigError('{} does not present in annotation'.format(self.label) |
Formatter(object) |
__init__(self, output=None, include=None, exclude=None) |
display(self, event_record) |
self._should_display(event_record) |
self._display(event_record) |
_display(self, event_record) |
NotImplementedError('_display() |
_should_display(self, event_record) |
DetailedFormatter(Formatter) |
__init__(self, output=None, include=None, exclude=None, colorize=True) |
super(DetailedFormatter, self) |
__init__(output, include, exclude) |
SectionValuePrettyFormatter() |
colorama.init(autoreset=True, strip=False) |
_display(self, event_record) |
self._SECTIONS.get(event_record['event_type']) |
self._display_section(event_record, section_definition) |
_display_section(self, event_record, section_definition) |
self._display_title(section_definition['title'], event_record) |
self._display_value(value_definition, event_record) |
_display_title(self, title, event_record) |
self._format_section_title(title, event_record) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.