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
@read_session def list_bad_replicas_history(limit=10000, thread=None, total_threads=None, session=None): '\n List the bad file replicas history. Method only used by necromancer\n\n :param limit: The maximum number of replicas returned.\n :param thread: The assigned thread for this necromancer.\n :param ...
270,415,974,295,745,380
List the bad file replicas history. Method only used by necromancer :param limit: The maximum number of replicas returned. :param thread: The assigned thread for this necromancer. :param total_threads: The total number of threads of all necromancers. :param session: The database session in use.
lib/rucio/core/replica.py
list_bad_replicas_history
bari12/rucio
python
@read_session def list_bad_replicas_history(limit=10000, thread=None, total_threads=None, session=None): '\n List the bad file replicas history. Method only used by necromancer\n\n :param limit: The maximum number of replicas returned.\n :param thread: The assigned thread for this necromancer.\n :param ...
@transactional_session def update_bad_replicas_history(dids, rse_id, session=None): '\n Update the bad file replicas history. Method only used by necromancer\n\n :param dids: The list of DIDs.\n :param rse_id: The rse_id.\n :param session: The database session in use.\n ' for did in dids: ...
-5,265,296,215,497,797,000
Update the bad file replicas history. Method only used by necromancer :param dids: The list of DIDs. :param rse_id: The rse_id. :param session: The database session in use.
lib/rucio/core/replica.py
update_bad_replicas_history
bari12/rucio
python
@transactional_session def update_bad_replicas_history(dids, rse_id, session=None): '\n Update the bad file replicas history. Method only used by necromancer\n\n :param dids: The list of DIDs.\n :param rse_id: The rse_id.\n :param session: The database session in use.\n ' for did in dids: ...
@transactional_session def __declare_bad_file_replicas(pfns, rse_id, reason, issuer, status=BadFilesStatus.BAD, scheme='srm', session=None): '\n Declare a list of bad replicas.\n\n :param pfns: The list of PFNs.\n :param rse_id: The RSE id.\n :param reason: The reason of the loss.\n :param issuer: Th...
-9,121,332,924,852,603,000
Declare a list of bad replicas. :param pfns: The list of PFNs. :param rse_id: The RSE id. :param reason: The reason of the loss. :param issuer: The issuer account. :param status: Either BAD or SUSPICIOUS. :param scheme: The scheme of the PFNs. :param session: The database session in use.
lib/rucio/core/replica.py
__declare_bad_file_replicas
bari12/rucio
python
@transactional_session def __declare_bad_file_replicas(pfns, rse_id, reason, issuer, status=BadFilesStatus.BAD, scheme='srm', session=None): '\n Declare a list of bad replicas.\n\n :param pfns: The list of PFNs.\n :param rse_id: The RSE id.\n :param reason: The reason of the loss.\n :param issuer: Th...
@transactional_session def add_bad_dids(dids, rse_id, reason, issuer, state=BadFilesStatus.BAD, session=None): '\n Declare a list of bad replicas.\n\n :param dids: The list of DIDs.\n :param rse_id: The RSE id.\n :param reason: The reason of the loss.\n :param issuer: The issuer account.\n :param ...
-7,335,185,593,077,941,000
Declare a list of bad replicas. :param dids: The list of DIDs. :param rse_id: The RSE id. :param reason: The reason of the loss. :param issuer: The issuer account. :param state: BadFilesStatus.BAD :param session: The database session in use.
lib/rucio/core/replica.py
add_bad_dids
bari12/rucio
python
@transactional_session def add_bad_dids(dids, rse_id, reason, issuer, state=BadFilesStatus.BAD, session=None): '\n Declare a list of bad replicas.\n\n :param dids: The list of DIDs.\n :param rse_id: The RSE id.\n :param reason: The reason of the loss.\n :param issuer: The issuer account.\n :param ...
@transactional_session def declare_bad_file_replicas(pfns, reason, issuer, status=BadFilesStatus.BAD, session=None): '\n Declare a list of bad replicas.\n\n :param pfns: The list of PFNs.\n :param reason: The reason of the loss.\n :param issuer: The issuer account.\n :param status: The status of the ...
-8,094,433,688,527,944,000
Declare a list of bad replicas. :param pfns: The list of PFNs. :param reason: The reason of the loss. :param issuer: The issuer account. :param status: The status of the file (SUSPICIOUS or BAD). :param session: The database session in use.
lib/rucio/core/replica.py
declare_bad_file_replicas
bari12/rucio
python
@transactional_session def declare_bad_file_replicas(pfns, reason, issuer, status=BadFilesStatus.BAD, session=None): '\n Declare a list of bad replicas.\n\n :param pfns: The list of PFNs.\n :param reason: The reason of the loss.\n :param issuer: The issuer account.\n :param status: The status of the ...
@read_session def get_pfn_to_rse(pfns, vo='def', session=None): "\n Get the RSE associated to a list of PFNs.\n\n :param pfns: The list of pfn.\n :param vo: The VO to find RSEs at.\n :param session: The database session in use.\n\n :returns: a tuple : scheme, {rse1 : [pfn1, pfn2, ...], rse2: [pfn3, p...
8,781,953,538,096,400,000
Get the RSE associated to a list of PFNs. :param pfns: The list of pfn. :param vo: The VO to find RSEs at. :param session: The database session in use. :returns: a tuple : scheme, {rse1 : [pfn1, pfn2, ...], rse2: [pfn3, pfn4, ...]}, {'unknown': [pfn5, pfn6, ...]}.
lib/rucio/core/replica.py
get_pfn_to_rse
bari12/rucio
python
@read_session def get_pfn_to_rse(pfns, vo='def', session=None): "\n Get the RSE associated to a list of PFNs.\n\n :param pfns: The list of pfn.\n :param vo: The VO to find RSEs at.\n :param session: The database session in use.\n\n :returns: a tuple : scheme, {rse1 : [pfn1, pfn2, ...], rse2: [pfn3, p...
@read_session def list_bad_replicas(limit=10000, thread=None, total_threads=None, session=None): "\n List RSE File replicas with no locks.\n\n :param limit: The maximum number of replicas returned.\n :param thread: The assigned thread for this necromancer.\n :param total_threads: The total number of thr...
7,562,381,061,718,328,000
List RSE File replicas with no locks. :param limit: The maximum number of replicas returned. :param thread: The assigned thread for this necromancer. :param total_threads: The total number of threads of all necromancers. :param session: The database session in use. :returns: a list of dictionary {'scope' scope, 'name...
lib/rucio/core/replica.py
list_bad_replicas
bari12/rucio
python
@read_session def list_bad_replicas(limit=10000, thread=None, total_threads=None, session=None): "\n List RSE File replicas with no locks.\n\n :param limit: The maximum number of replicas returned.\n :param thread: The assigned thread for this necromancer.\n :param total_threads: The total number of thr...
@stream_session def get_did_from_pfns(pfns, rse_id=None, vo='def', session=None): "\n Get the DIDs associated to a PFN on one given RSE\n\n :param pfns: The list of PFNs.\n :param rse_id: The RSE id.\n :param vo: The VO to get DIDs from.\n :param session: The database session in use.\n :returns: A...
5,691,291,921,351,244,000
Get the DIDs associated to a PFN on one given RSE :param pfns: The list of PFNs. :param rse_id: The RSE id. :param vo: The VO to get DIDs from. :param session: The database session in use. :returns: A dictionary {pfn: {'scope': scope, 'name': name}}
lib/rucio/core/replica.py
get_did_from_pfns
bari12/rucio
python
@stream_session def get_did_from_pfns(pfns, rse_id=None, vo='def', session=None): "\n Get the DIDs associated to a PFN on one given RSE\n\n :param pfns: The list of PFNs.\n :param rse_id: The RSE id.\n :param vo: The VO to get DIDs from.\n :param session: The database session in use.\n :returns: A...
def _resolve_dids(dids, unavailable, ignore_availability, all_states, resolve_archives, session): "\n Resolve list of DIDs into a list of conditions.\n\n :param dids: The list of data identifiers (DIDs).\n :param unavailable: (deprecated) Also include unavailable replicas in the list.\n :param ignore_av...
8,015,680,666,655,023,000
Resolve list of DIDs into a list of conditions. :param dids: The list of data identifiers (DIDs). :param unavailable: (deprecated) Also include unavailable replicas in the list. :param ignore_availability: Ignore the RSE blocklisting. :param all_states: Return all replicas whatever state they are in. Adds an extra 'st...
lib/rucio/core/replica.py
_resolve_dids
bari12/rucio
python
def _resolve_dids(dids, unavailable, ignore_availability, all_states, resolve_archives, session): "\n Resolve list of DIDs into a list of conditions.\n\n :param dids: The list of data identifiers (DIDs).\n :param unavailable: (deprecated) Also include unavailable replicas in the list.\n :param ignore_av...
def _pick_n_random(nrandom, generator): '\n Select n random elements from the generator\n ' if (not nrandom): (yield from generator) return selected = [] i = 0 iterator = iter(generator) try: for _ in range(nrandom): selected.append(next(iterator)) ...
9,044,595,939,997,208,000
Select n random elements from the generator
lib/rucio/core/replica.py
_pick_n_random
bari12/rucio
python
def _pick_n_random(nrandom, generator): '\n \n ' if (not nrandom): (yield from generator) return selected = [] i = 0 iterator = iter(generator) try: for _ in range(nrandom): selected.append(next(iterator)) i += 1 while True: ...
def _list_replicas_for_datasets(dataset_clause, state_clause, rse_clause, ignore_availability, updated_after, session): '\n List file replicas for a list of datasets.\n\n :param session: The database session in use.\n ' if (not dataset_clause): return replica_query = session.query(models.Da...
4,717,627,223,720,227,000
List file replicas for a list of datasets. :param session: The database session in use.
lib/rucio/core/replica.py
_list_replicas_for_datasets
bari12/rucio
python
def _list_replicas_for_datasets(dataset_clause, state_clause, rse_clause, ignore_availability, updated_after, session): '\n List file replicas for a list of datasets.\n\n :param session: The database session in use.\n ' if (not dataset_clause): return replica_query = session.query(models.Da...
def _list_replicas_for_constituents(constituent_clause, state_clause, files_wo_replica, rse_clause, ignore_availability, updated_after, session): '\n List file replicas for archive constituents.\n ' if (not constituent_clause): return constituent_query = session.query(models.ConstituentAssocia...
1,421,381,160,717,762,800
List file replicas for archive constituents.
lib/rucio/core/replica.py
_list_replicas_for_constituents
bari12/rucio
python
def _list_replicas_for_constituents(constituent_clause, state_clause, files_wo_replica, rse_clause, ignore_availability, updated_after, session): '\n \n ' if (not constituent_clause): return constituent_query = session.query(models.ConstituentAssociation.child_scope, models.ConstituentAssociat...
def _list_replicas_for_files(file_clause, state_clause, files_wo_replica, rse_clause, ignore_availability, updated_after, session): '\n List file replicas for a list of files.\n\n :param session: The database session in use.\n ' if (not file_clause): return for replica_condition in chunks(f...
-8,911,362,273,277,100,000
List file replicas for a list of files. :param session: The database session in use.
lib/rucio/core/replica.py
_list_replicas_for_files
bari12/rucio
python
def _list_replicas_for_files(file_clause, state_clause, files_wo_replica, rse_clause, ignore_availability, updated_after, session): '\n List file replicas for a list of files.\n\n :param session: The database session in use.\n ' if (not file_clause): return for replica_condition in chunks(f...
def get_vp_endpoint(): "\n VP endpoint is the Virtual Placement server.\n Once VP is integrated in Rucio it won't be needed.\n " vp_endpoint = config_get('virtual_placement', 'vp_endpoint', default='') return vp_endpoint
-4,848,187,607,751,366,000
VP endpoint is the Virtual Placement server. Once VP is integrated in Rucio it won't be needed.
lib/rucio/core/replica.py
get_vp_endpoint
bari12/rucio
python
def get_vp_endpoint(): "\n VP endpoint is the Virtual Placement server.\n Once VP is integrated in Rucio it won't be needed.\n " vp_endpoint = config_get('virtual_placement', 'vp_endpoint', default=) return vp_endpoint
def get_multi_cache_prefix(cache_site, filename, logger=logging.log): '\n for a givent cache site and filename, return address of the cache node that\n should be prefixed.\n\n :param cache_site: Cache site\n :param filename: Filename\n ' vp_endpoint = get_vp_endpoint() if (not vp_endpoint): ...
-6,507,303,531,448,083,000
for a givent cache site and filename, return address of the cache node that should be prefixed. :param cache_site: Cache site :param filename: Filename
lib/rucio/core/replica.py
get_multi_cache_prefix
bari12/rucio
python
def get_multi_cache_prefix(cache_site, filename, logger=logging.log): '\n for a givent cache site and filename, return address of the cache node that\n should be prefixed.\n\n :param cache_site: Cache site\n :param filename: Filename\n ' vp_endpoint = get_vp_endpoint() if (not vp_endpoint): ...
@stream_session def list_replicas(dids, schemes=None, unavailable=False, request_id=None, ignore_availability=True, all_states=False, pfns=True, rse_expression=None, client_location=None, domain=None, sign_urls=False, signature_lifetime=None, resolve_archives=True, resolve_parents=False, nrandom=None, updated_after=Non...
-3,264,574,774,412,415,500
List file replicas for a list of data identifiers (DIDs). :param dids: The list of data identifiers (DIDs). :param schemes: A list of schemes to filter the replicas. (e.g. file, http, ...) :param unavailable: (deprecated) Also include unavailable replicas in the list. :param request_id: ID associated with the request ...
lib/rucio/core/replica.py
list_replicas
bari12/rucio
python
@stream_session def list_replicas(dids, schemes=None, unavailable=False, request_id=None, ignore_availability=True, all_states=False, pfns=True, rse_expression=None, client_location=None, domain=None, sign_urls=False, signature_lifetime=None, resolve_archives=True, resolve_parents=False, nrandom=None, updated_after=Non...
@transactional_session def __bulk_add_new_file_dids(files, account, dataset_meta=None, session=None): '\n Bulk add new dids.\n\n :param dids: the list of new files.\n :param account: The account owner.\n :param session: The database session in use.\n :returns: True is successful.\n ' for file ...
1,837,834,521,056,973,800
Bulk add new dids. :param dids: the list of new files. :param account: The account owner. :param session: The database session in use. :returns: True is successful.
lib/rucio/core/replica.py
__bulk_add_new_file_dids
bari12/rucio
python
@transactional_session def __bulk_add_new_file_dids(files, account, dataset_meta=None, session=None): '\n Bulk add new dids.\n\n :param dids: the list of new files.\n :param account: The account owner.\n :param session: The database session in use.\n :returns: True is successful.\n ' for file ...
@transactional_session def __bulk_add_file_dids(files, account, dataset_meta=None, session=None): '\n Bulk add new dids.\n\n :param dids: the list of files.\n :param account: The account owner.\n :param session: The database session in use.\n :returns: True is successful.\n ' condition = [] ...
-8,821,624,138,230,299,000
Bulk add new dids. :param dids: the list of files. :param account: The account owner. :param session: The database session in use. :returns: True is successful.
lib/rucio/core/replica.py
__bulk_add_file_dids
bari12/rucio
python
@transactional_session def __bulk_add_file_dids(files, account, dataset_meta=None, session=None): '\n Bulk add new dids.\n\n :param dids: the list of files.\n :param account: The account owner.\n :param session: The database session in use.\n :returns: True is successful.\n ' condition = [] ...
@transactional_session def __bulk_add_replicas(rse_id, files, account, session=None): '\n Bulk add new dids.\n\n :param rse_id: the RSE id.\n :param dids: the list of files.\n :param account: The account owner.\n :param session: The database session in use.\n :returns: True is successful.\n ' ...
5,013,684,583,000,202,000
Bulk add new dids. :param rse_id: the RSE id. :param dids: the list of files. :param account: The account owner. :param session: The database session in use. :returns: True is successful.
lib/rucio/core/replica.py
__bulk_add_replicas
bari12/rucio
python
@transactional_session def __bulk_add_replicas(rse_id, files, account, session=None): '\n Bulk add new dids.\n\n :param rse_id: the RSE id.\n :param dids: the list of files.\n :param account: The account owner.\n :param session: The database session in use.\n :returns: True is successful.\n ' ...
@transactional_session def add_replicas(rse_id, files, account, ignore_availability=True, dataset_meta=None, session=None): '\n Bulk add file replicas.\n\n :param rse_id: The RSE id.\n :param files: The list of files.\n :param account: The account owner.\n :param ignore_availability: Ignore the RS...
-7,440,819,356,795,058,000
Bulk add file replicas. :param rse_id: The RSE id. :param files: The list of files. :param account: The account owner. :param ignore_availability: Ignore the RSE blocklisting. :param session: The database session in use. :returns: True is successful.
lib/rucio/core/replica.py
add_replicas
bari12/rucio
python
@transactional_session def add_replicas(rse_id, files, account, ignore_availability=True, dataset_meta=None, session=None): '\n Bulk add file replicas.\n\n :param rse_id: The RSE id.\n :param files: The list of files.\n :param account: The account owner.\n :param ignore_availability: Ignore the RS...
@transactional_session def add_replica(rse_id, scope, name, bytes, account, adler32=None, md5=None, dsn=None, pfn=None, meta=None, rules=[], tombstone=None, session=None): "\n Add File replica.\n\n :param rse_id: the rse id.\n :param scope: the scope name.\n :param name: The data identifier name.\n :...
-2,775,978,389,477,913,600
Add File replica. :param rse_id: the rse id. :param scope: the scope name. :param name: The data identifier name. :param bytes: the size of the file. :param account: The account owner. :param md5: The md5 checksum. :param adler32: The adler32 checksum. :param pfn: Physical file name (for nondeterministic rse). :param ...
lib/rucio/core/replica.py
add_replica
bari12/rucio
python
@transactional_session def add_replica(rse_id, scope, name, bytes, account, adler32=None, md5=None, dsn=None, pfn=None, meta=None, rules=[], tombstone=None, session=None): "\n Add File replica.\n\n :param rse_id: the rse id.\n :param scope: the scope name.\n :param name: The data identifier name.\n :...
@transactional_session def delete_replicas(rse_id, files, ignore_availability=True, session=None): '\n Delete file replicas.\n\n :param rse_id: the rse id.\n :param files: the list of files to delete.\n :param ignore_availability: Ignore the RSE blocklisting.\n :param session: The database session in...
-6,768,273,747,281,366,000
Delete file replicas. :param rse_id: the rse id. :param files: the list of files to delete. :param ignore_availability: Ignore the RSE blocklisting. :param session: The database session in use.
lib/rucio/core/replica.py
delete_replicas
bari12/rucio
python
@transactional_session def delete_replicas(rse_id, files, ignore_availability=True, session=None): '\n Delete file replicas.\n\n :param rse_id: the rse id.\n :param files: the list of files to delete.\n :param ignore_availability: Ignore the RSE blocklisting.\n :param session: The database session in...
@transactional_session def __cleanup_after_replica_deletion(rse_id, files, session=None): '\n Perform update of collections/archive associations/dids after the removal of their replicas\n :param rse_id: the rse id\n :param files: list of files whose replica got deleted\n :param session: The database ses...
-9,200,459,903,563,746,000
Perform update of collections/archive associations/dids after the removal of their replicas :param rse_id: the rse id :param files: list of files whose replica got deleted :param session: The database session in use.
lib/rucio/core/replica.py
__cleanup_after_replica_deletion
bari12/rucio
python
@transactional_session def __cleanup_after_replica_deletion(rse_id, files, session=None): '\n Perform update of collections/archive associations/dids after the removal of their replicas\n :param rse_id: the rse id\n :param files: list of files whose replica got deleted\n :param session: The database ses...
@transactional_session def get_replica(rse_id, scope, name, session=None): '\n Get File replica.\n\n :param rse_id: The RSE Id.\n :param scope: the scope name.\n :param name: The data identifier name.\n :param session: The database session in use.\n\n :returns: A dictionary with the list of replic...
867,883,035,569,628,500
Get File replica. :param rse_id: The RSE Id. :param scope: the scope name. :param name: The data identifier name. :param session: The database session in use. :returns: A dictionary with the list of replica attributes.
lib/rucio/core/replica.py
get_replica
bari12/rucio
python
@transactional_session def get_replica(rse_id, scope, name, session=None): '\n Get File replica.\n\n :param rse_id: The RSE Id.\n :param scope: the scope name.\n :param name: The data identifier name.\n :param session: The database session in use.\n\n :returns: A dictionary with the list of replic...
@transactional_session def list_and_mark_unlocked_replicas(limit, bytes=None, rse_id=None, delay_seconds=600, only_delete_obsolete=False, session=None): '\n List RSE File replicas with no locks.\n\n :param limit: Number of replicas returned.\n :param bytes: The amount ...
8,043,752,399,939,749,000
List RSE File replicas with no locks. :param limit: Number of replicas returned. :param bytes: The amount of needed bytes. :param rse_id: The rse_id. :param delay_seconds: The delay to query replicas in BEING_DELETED state :param only_delete_obsolete ...
lib/rucio/core/replica.py
list_and_mark_unlocked_replicas
bari12/rucio
python
@transactional_session def list_and_mark_unlocked_replicas(limit, bytes=None, rse_id=None, delay_seconds=600, only_delete_obsolete=False, session=None): '\n List RSE File replicas with no locks.\n\n :param limit: Number of replicas returned.\n :param bytes: The amount ...
@transactional_session def update_replicas_states(replicas, nowait=False, session=None): '\n Update File replica information and state.\n\n :param replicas: The list of replicas.\n :param nowait: Nowait parameter for the for_update queries.\n :param session: The database session ...
4,675,642,054,458,534,000
Update File replica information and state. :param replicas: The list of replicas. :param nowait: Nowait parameter for the for_update queries. :param session: The database session in use.
lib/rucio/core/replica.py
update_replicas_states
bari12/rucio
python
@transactional_session def update_replicas_states(replicas, nowait=False, session=None): '\n Update File replica information and state.\n\n :param replicas: The list of replicas.\n :param nowait: Nowait parameter for the for_update queries.\n :param session: The database session ...
@transactional_session def touch_replica(replica, session=None): "\n Update the accessed_at timestamp of the given file replica/did but don't wait if row is locked.\n\n :param replica: a dictionary with the information of the affected replica.\n :param session: The database session in use.\n\n :returns:...
-6,751,399,618,882,462,000
Update the accessed_at timestamp of the given file replica/did but don't wait if row is locked. :param replica: a dictionary with the information of the affected replica. :param session: The database session in use. :returns: True, if successful, False otherwise.
lib/rucio/core/replica.py
touch_replica
bari12/rucio
python
@transactional_session def touch_replica(replica, session=None): "\n Update the accessed_at timestamp of the given file replica/did but don't wait if row is locked.\n\n :param replica: a dictionary with the information of the affected replica.\n :param session: The database session in use.\n\n :returns:...
@transactional_session def update_replica_state(rse_id, scope, name, state, session=None): '\n Update File replica information and state.\n\n :param rse_id: the rse id.\n :param scope: the tag name.\n :param name: The data identifier name.\n :param state: The state.\n :param session: The database ...
-7,170,540,824,155,534,000
Update File replica information and state. :param rse_id: the rse id. :param scope: the tag name. :param name: The data identifier name. :param state: The state. :param session: The database session in use.
lib/rucio/core/replica.py
update_replica_state
bari12/rucio
python
@transactional_session def update_replica_state(rse_id, scope, name, state, session=None): '\n Update File replica information and state.\n\n :param rse_id: the rse id.\n :param scope: the tag name.\n :param name: The data identifier name.\n :param state: The state.\n :param session: The database ...
@transactional_session def get_and_lock_file_replicas(scope, name, nowait=False, restrict_rses=None, session=None): '\n Get file replicas for a specific scope:name.\n\n :param scope: The scope of the did.\n :param name: The name of the did.\n :param nowait: Nowait parameter fo...
3,420,387,852,648,353,300
Get file replicas for a specific scope:name. :param scope: The scope of the did. :param name: The name of the did. :param nowait: Nowait parameter for the FOR UPDATE statement :param restrict_rses: Possible RSE_ids to filter on. :param session: The db session in use. :returns: ...
lib/rucio/core/replica.py
get_and_lock_file_replicas
bari12/rucio
python
@transactional_session def get_and_lock_file_replicas(scope, name, nowait=False, restrict_rses=None, session=None): '\n Get file replicas for a specific scope:name.\n\n :param scope: The scope of the did.\n :param name: The name of the did.\n :param nowait: Nowait parameter fo...
@transactional_session def get_source_replicas(scope, name, source_rses=None, session=None): '\n Get soruce replicas for a specific scope:name.\n\n :param scope: The scope of the did.\n :param name: The name of the did.\n :param soruce_rses: Possible RSE_ids to filter on.\n :par...
-6,186,249,393,269,582,000
Get soruce replicas for a specific scope:name. :param scope: The scope of the did. :param name: The name of the did. :param soruce_rses: Possible RSE_ids to filter on. :param session: The db session in use. :returns: List of SQLAlchemy Replica Objects
lib/rucio/core/replica.py
get_source_replicas
bari12/rucio
python
@transactional_session def get_source_replicas(scope, name, source_rses=None, session=None): '\n Get soruce replicas for a specific scope:name.\n\n :param scope: The scope of the did.\n :param name: The name of the did.\n :param soruce_rses: Possible RSE_ids to filter on.\n :par...
@transactional_session def get_and_lock_file_replicas_for_dataset(scope, name, nowait=False, restrict_rses=None, total_threads=None, thread_id=None, session=None): '\n Get file replicas for all files of a dataset.\n\n :param scope: The scope of the dataset.\n :param name: The name of the...
3,723,481,605,392,194,600
Get file replicas for all files of a dataset. :param scope: The scope of the dataset. :param name: The name of the dataset. :param nowait: Nowait parameter for the FOR UPDATE statement :param restrict_rses: Possible RSE_ids to filter on. :param total_threads: Total threads :param thread_id...
lib/rucio/core/replica.py
get_and_lock_file_replicas_for_dataset
bari12/rucio
python
@transactional_session def get_and_lock_file_replicas_for_dataset(scope, name, nowait=False, restrict_rses=None, total_threads=None, thread_id=None, session=None): '\n Get file replicas for all files of a dataset.\n\n :param scope: The scope of the dataset.\n :param name: The name of the...
@transactional_session def get_source_replicas_for_dataset(scope, name, source_rses=None, total_threads=None, thread_id=None, session=None): '\n Get file replicas for all files of a dataset.\n\n :param scope: The scope of the dataset.\n :param name: The name of the dataset.\n :param s...
4,626,561,482,023,698,000
Get file replicas for all files of a dataset. :param scope: The scope of the dataset. :param name: The name of the dataset. :param source_rses: Possible source RSE_ids to filter on. :param total_threads: Total threads :param thread_id: This thread :param session: The db session in us...
lib/rucio/core/replica.py
get_source_replicas_for_dataset
bari12/rucio
python
@transactional_session def get_source_replicas_for_dataset(scope, name, source_rses=None, total_threads=None, thread_id=None, session=None): '\n Get file replicas for all files of a dataset.\n\n :param scope: The scope of the dataset.\n :param name: The name of the dataset.\n :param s...
@read_session def get_replica_atime(replica, session=None): '\n Get the accessed_at timestamp for a replica. Just for testing.\n :param replicas: List of dictionaries {scope, name, rse_id, path}\n :param session: Database session to use.\n\n :returns: A datetime timestamp with the last access time.\n ...
-2,012,700,357,308,795,600
Get the accessed_at timestamp for a replica. Just for testing. :param replicas: List of dictionaries {scope, name, rse_id, path} :param session: Database session to use. :returns: A datetime timestamp with the last access time.
lib/rucio/core/replica.py
get_replica_atime
bari12/rucio
python
@read_session def get_replica_atime(replica, session=None): '\n Get the accessed_at timestamp for a replica. Just for testing.\n :param replicas: List of dictionaries {scope, name, rse_id, path}\n :param session: Database session to use.\n\n :returns: A datetime timestamp with the last access time.\n ...
@transactional_session def touch_collection_replicas(collection_replicas, session=None): '\n Update the accessed_at timestamp of the given collection replicas.\n\n :param collection_replicas: the list of collection replicas.\n :param session: The database session in use.\n\n :returns: True, if successfu...
-1,533,478,739,449,387,300
Update the accessed_at timestamp of the given collection replicas. :param collection_replicas: the list of collection replicas. :param session: The database session in use. :returns: True, if successful, False otherwise.
lib/rucio/core/replica.py
touch_collection_replicas
bari12/rucio
python
@transactional_session def touch_collection_replicas(collection_replicas, session=None): '\n Update the accessed_at timestamp of the given collection replicas.\n\n :param collection_replicas: the list of collection replicas.\n :param session: The database session in use.\n\n :returns: True, if successfu...
@stream_session def list_dataset_replicas(scope, name, deep=False, session=None): '\n :param scope: The scope of the dataset.\n :param name: The name of the dataset.\n :param deep: Lookup at the file level.\n :param session: Database session to use.\n\n :returns: A list of dictionaries containing the...
-6,567,382,506,538,051,000
:param scope: The scope of the dataset. :param name: The name of the dataset. :param deep: Lookup at the file level. :param session: Database session to use. :returns: A list of dictionaries containing the dataset replicas with associated metrics and timestamps
lib/rucio/core/replica.py
list_dataset_replicas
bari12/rucio
python
@stream_session def list_dataset_replicas(scope, name, deep=False, session=None): '\n :param scope: The scope of the dataset.\n :param name: The name of the dataset.\n :param deep: Lookup at the file level.\n :param session: Database session to use.\n\n :returns: A list of dictionaries containing the...
@stream_session def list_dataset_replicas_bulk(names_by_intscope, session=None): '\n :param names_by_intscope: The dictionary of internal scopes pointing at the list of names.\n :param session: Database session to use.\n\n :returns: A list of dictionaries containing the dataset replicas\n with...
2,755,515,626,914,224,000
:param names_by_intscope: The dictionary of internal scopes pointing at the list of names. :param session: Database session to use. :returns: A list of dictionaries containing the dataset replicas with associated metrics and timestamps
lib/rucio/core/replica.py
list_dataset_replicas_bulk
bari12/rucio
python
@stream_session def list_dataset_replicas_bulk(names_by_intscope, session=None): '\n :param names_by_intscope: The dictionary of internal scopes pointing at the list of names.\n :param session: Database session to use.\n\n :returns: A list of dictionaries containing the dataset replicas\n with...
@stream_session def list_dataset_replicas_vp(scope, name, deep=False, session=None, logger=logging.log): '\n List dataset replicas for a DID (scope:name) using the\n Virtual Placement service.\n\n NOTICE: This is an RnD function and might change or go away at any time.\n\n :param scope: The scope of the...
6,437,509,760,921,229,000
List dataset replicas for a DID (scope:name) using the Virtual Placement service. NOTICE: This is an RnD function and might change or go away at any time. :param scope: The scope of the dataset. :param name: The name of the dataset. :param deep: Lookup at the file level. :param session: Database session to use. :ret...
lib/rucio/core/replica.py
list_dataset_replicas_vp
bari12/rucio
python
@stream_session def list_dataset_replicas_vp(scope, name, deep=False, session=None, logger=logging.log): '\n List dataset replicas for a DID (scope:name) using the\n Virtual Placement service.\n\n NOTICE: This is an RnD function and might change or go away at any time.\n\n :param scope: The scope of the...
@stream_session def list_datasets_per_rse(rse_id, filters=None, limit=None, session=None): '\n List datasets at a RSE.\n\n :param rse: the rse id.\n :param filters: dictionary of attributes by which the results should be filtered.\n :param limit: limit number.\n :param session: Database session to us...
-8,708,544,273,493,562,000
List datasets at a RSE. :param rse: the rse id. :param filters: dictionary of attributes by which the results should be filtered. :param limit: limit number. :param session: Database session to use. :returns: A list of dict dataset replicas
lib/rucio/core/replica.py
list_datasets_per_rse
bari12/rucio
python
@stream_session def list_datasets_per_rse(rse_id, filters=None, limit=None, session=None): '\n List datasets at a RSE.\n\n :param rse: the rse id.\n :param filters: dictionary of attributes by which the results should be filtered.\n :param limit: limit number.\n :param session: Database session to us...
@transactional_session def get_cleaned_updated_collection_replicas(total_workers, worker_number, limit=None, session=None): '\n Get update request for collection replicas.\n :param total_workers: Number of total workers.\n :param worker_number: id of the executing worker.\n :param limit: ...
-3,051,547,904,663,297,500
Get update request for collection replicas. :param total_workers: Number of total workers. :param worker_number: id of the executing worker. :param limit: Maximum numberws to return. :param session: Database session in use. :returns: List of update requests for collect...
lib/rucio/core/replica.py
get_cleaned_updated_collection_replicas
bari12/rucio
python
@transactional_session def get_cleaned_updated_collection_replicas(total_workers, worker_number, limit=None, session=None): '\n Get update request for collection replicas.\n :param total_workers: Number of total workers.\n :param worker_number: id of the executing worker.\n :param limit: ...
@transactional_session def update_collection_replica(update_request, session=None): '\n Update a collection replica.\n :param update_request: update request from the upated_col_rep table.\n ' if (update_request['rse_id'] is not None): ds_length = 0 old_available_replicas = 0 ds_...
4,138,301,468,626,472,000
Update a collection replica. :param update_request: update request from the upated_col_rep table.
lib/rucio/core/replica.py
update_collection_replica
bari12/rucio
python
@transactional_session def update_collection_replica(update_request, session=None): '\n Update a collection replica.\n :param update_request: update request from the upated_col_rep table.\n ' if (update_request['rse_id'] is not None): ds_length = 0 old_available_replicas = 0 ds_...
@read_session def get_bad_pfns(limit=10000, thread=None, total_threads=None, session=None): "\n Returns a list of bad PFNs\n\n :param limit: The maximum number of replicas returned.\n :param thread: The assigned thread for this minos instance.\n :param total_threads: The total number of minos threads.\n...
-8,924,492,310,788,700,000
Returns a list of bad PFNs :param limit: The maximum number of replicas returned. :param thread: The assigned thread for this minos instance. :param total_threads: The total number of minos threads. :param session: The database session in use. returns: list of PFNs {'pfn': pfn, 'state': state, 'reason': reason, 'acco...
lib/rucio/core/replica.py
get_bad_pfns
bari12/rucio
python
@read_session def get_bad_pfns(limit=10000, thread=None, total_threads=None, session=None): "\n Returns a list of bad PFNs\n\n :param limit: The maximum number of replicas returned.\n :param thread: The assigned thread for this minos instance.\n :param total_threads: The total number of minos threads.\n...
@transactional_session def bulk_add_bad_replicas(replicas, account, state=BadFilesStatus.TEMPORARY_UNAVAILABLE, reason=None, expires_at=None, session=None): '\n Bulk add new bad replicas.\n\n :param replicas: the list of bad replicas.\n :param account: The account who declared the bad replicas.\n :param...
4,175,332,033,690,639,000
Bulk add new bad replicas. :param replicas: the list of bad replicas. :param account: The account who declared the bad replicas. :param state: The state of the file (SUSPICIOUS, BAD or TEMPORARY_UNAVAILABLE). :param session: The database session in use. :returns: True is successful.
lib/rucio/core/replica.py
bulk_add_bad_replicas
bari12/rucio
python
@transactional_session def bulk_add_bad_replicas(replicas, account, state=BadFilesStatus.TEMPORARY_UNAVAILABLE, reason=None, expires_at=None, session=None): '\n Bulk add new bad replicas.\n\n :param replicas: the list of bad replicas.\n :param account: The account who declared the bad replicas.\n :param...
@transactional_session def bulk_delete_bad_pfns(pfns, session=None): '\n Bulk delete bad PFNs.\n\n :param pfns: the list of new files.\n :param session: The database session in use.\n\n :returns: True is successful.\n ' pfn_clause = [] for pfn in pfns: pfn_clause.append((models.BadPFN...
-2,324,208,928,254,189,600
Bulk delete bad PFNs. :param pfns: the list of new files. :param session: The database session in use. :returns: True is successful.
lib/rucio/core/replica.py
bulk_delete_bad_pfns
bari12/rucio
python
@transactional_session def bulk_delete_bad_pfns(pfns, session=None): '\n Bulk delete bad PFNs.\n\n :param pfns: the list of new files.\n :param session: The database session in use.\n\n :returns: True is successful.\n ' pfn_clause = [] for pfn in pfns: pfn_clause.append((models.BadPFN...
@transactional_session def bulk_delete_bad_replicas(bad_replicas, session=None): '\n Bulk delete bad replica.\n\n :param bad_replicas: The list of bad replicas to delete (Dictionaries).\n :param session: The database session in use.\n\n :returns: True is successful.\n ' replica_clause ...
2,723,186,127,305,752,600
Bulk delete bad replica. :param bad_replicas: The list of bad replicas to delete (Dictionaries). :param session: The database session in use. :returns: True is successful.
lib/rucio/core/replica.py
bulk_delete_bad_replicas
bari12/rucio
python
@transactional_session def bulk_delete_bad_replicas(bad_replicas, session=None): '\n Bulk delete bad replica.\n\n :param bad_replicas: The list of bad replicas to delete (Dictionaries).\n :param session: The database session in use.\n\n :returns: True is successful.\n ' replica_clause ...
@transactional_session def add_bad_pfns(pfns, account, state, reason=None, expires_at=None, session=None): '\n Add bad PFNs.\n\n :param pfns: the list of new files.\n :param account: The account who declared the bad replicas.\n :param state: One of the possible states : BAD, SUSPICIOUS, TEMPORARY_UNAVAI...
1,059,017,633,819,548,800
Add bad PFNs. :param pfns: the list of new files. :param account: The account who declared the bad replicas. :param state: One of the possible states : BAD, SUSPICIOUS, TEMPORARY_UNAVAILABLE. :param reason: A string describing the reason of the loss. :param expires_at: Specify a timeout for the TEMPORARY_UNAVAILABLE r...
lib/rucio/core/replica.py
add_bad_pfns
bari12/rucio
python
@transactional_session def add_bad_pfns(pfns, account, state, reason=None, expires_at=None, session=None): '\n Add bad PFNs.\n\n :param pfns: the list of new files.\n :param account: The account who declared the bad replicas.\n :param state: One of the possible states : BAD, SUSPICIOUS, TEMPORARY_UNAVAI...
@read_session def list_expired_temporary_unavailable_replicas(total_workers, worker_number, limit=10000, session=None): '\n List the expired temporary unavailable replicas\n\n :param total_workers: Number of total workers.\n :param worker_number: id of the executing worker.\n :param limit: ...
4,703,407,185,827,953,000
List the expired temporary unavailable replicas :param total_workers: Number of total workers. :param worker_number: id of the executing worker. :param limit: The maximum number of replicas returned. :param session: The database session in use.
lib/rucio/core/replica.py
list_expired_temporary_unavailable_replicas
bari12/rucio
python
@read_session def list_expired_temporary_unavailable_replicas(total_workers, worker_number, limit=10000, session=None): '\n List the expired temporary unavailable replicas\n\n :param total_workers: Number of total workers.\n :param worker_number: id of the executing worker.\n :param limit: ...
@read_session def get_replicas_state(scope=None, name=None, session=None): '\n Method used by the necromancer to get all the replicas of a DIDs\n :param scope: The scope of the file.\n :param name: The name of the file.\n :param session: The database session in use.\n\n :returns: A dictionary with th...
-4,963,462,164,844,283,000
Method used by the necromancer to get all the replicas of a DIDs :param scope: The scope of the file. :param name: The name of the file. :param session: The database session in use. :returns: A dictionary with the list of states as keys and the rse_ids as value
lib/rucio/core/replica.py
get_replicas_state
bari12/rucio
python
@read_session def get_replicas_state(scope=None, name=None, session=None): '\n Method used by the necromancer to get all the replicas of a DIDs\n :param scope: The scope of the file.\n :param name: The name of the file.\n :param session: The database session in use.\n\n :returns: A dictionary with th...
@read_session def get_suspicious_files(rse_expression, filter=None, **kwargs): "\n Gets a list of replicas from bad_replicas table which are: declared more than <nattempts> times since <younger_than> date,\n present on the RSE specified by the <rse_expression> and do not have a state in <exclude_states> list....
7,221,747,538,460,163,000
Gets a list of replicas from bad_replicas table which are: declared more than <nattempts> times since <younger_than> date, present on the RSE specified by the <rse_expression> and do not have a state in <exclude_states> list. Selected replicas can also be required to be <available_elsewhere> on another RSE than the one...
lib/rucio/core/replica.py
get_suspicious_files
bari12/rucio
python
@read_session def get_suspicious_files(rse_expression, filter=None, **kwargs): "\n Gets a list of replicas from bad_replicas table which are: declared more than <nattempts> times since <younger_than> date,\n present on the RSE specified by the <rse_expression> and do not have a state in <exclude_states> list....
@transactional_session def set_tombstone(rse_id, scope, name, tombstone=OBSOLETE, session=None): '\n Sets a tombstone on a replica.\n\n :param rse_id: ID of RSE.\n :param scope: scope of the replica DID.\n :param name: name of the replica DID.\n :param tombstone: the tombstone to set. Default is OBSO...
-6,601,409,596,648,705,000
Sets a tombstone on a replica. :param rse_id: ID of RSE. :param scope: scope of the replica DID. :param name: name of the replica DID. :param tombstone: the tombstone to set. Default is OBSOLETE :param session: database session in use.
lib/rucio/core/replica.py
set_tombstone
bari12/rucio
python
@transactional_session def set_tombstone(rse_id, scope, name, tombstone=OBSOLETE, session=None): '\n Sets a tombstone on a replica.\n\n :param rse_id: ID of RSE.\n :param scope: scope of the replica DID.\n :param name: name of the replica DID.\n :param tombstone: the tombstone to set. Default is OBSO...
@read_session def get_RSEcoverage_of_dataset(scope, name, session=None): '\n Get total bytes present on RSEs\n\n :param scope: Scope of the dataset\n :param name: Name of the dataset\n :param session: The db session.\n :return: Dictionary { rse_id :...
4,917,449,103,829,381,000
Get total bytes present on RSEs :param scope: Scope of the dataset :param name: Name of the dataset :param session: The db session. :return: Dictionary { rse_id : <total bytes present at rse_id> }
lib/rucio/core/replica.py
get_RSEcoverage_of_dataset
bari12/rucio
python
@read_session def get_RSEcoverage_of_dataset(scope, name, session=None): '\n Get total bytes present on RSEs\n\n :param scope: Scope of the dataset\n :param name: Name of the dataset\n :param session: The db session.\n :return: Dictionary { rse_id :...
def __init__(self, errors=None): 'ErrorList - a model defined in Swagger' self._errors = None self.discriminator = None if (errors is not None): self.errors = errors
-8,961,291,312,829,862,000
ErrorList - a model defined in Swagger
controlm_py/models/error_list.py
__init__
dcompane/controlm_py
python
def __init__(self, errors=None): self._errors = None self.discriminator = None if (errors is not None): self.errors = errors
@property def errors(self): 'Gets the errors of this ErrorList. # noqa: E501\n\n\n :return: The errors of this ErrorList. # noqa: E501\n :rtype: list[ErrorData]\n ' return self._errors
5,822,717,732,938,109,000
Gets the errors of this ErrorList. # noqa: E501 :return: The errors of this ErrorList. # noqa: E501 :rtype: list[ErrorData]
controlm_py/models/error_list.py
errors
dcompane/controlm_py
python
@property def errors(self): 'Gets the errors of this ErrorList. # noqa: E501\n\n\n :return: The errors of this ErrorList. # noqa: E501\n :rtype: list[ErrorData]\n ' return self._errors
@errors.setter def errors(self, errors): 'Sets the errors of this ErrorList.\n\n\n :param errors: The errors of this ErrorList. # noqa: E501\n :type: list[ErrorData]\n ' self._errors = errors
-2,227,954,922,095,561,200
Sets the errors of this ErrorList. :param errors: The errors of this ErrorList. # noqa: E501 :type: list[ErrorData]
controlm_py/models/error_list.py
errors
dcompane/controlm_py
python
@errors.setter def errors(self, errors): 'Sets the errors of this ErrorList.\n\n\n :param errors: The errors of this ErrorList. # noqa: E501\n :type: list[ErrorData]\n ' self._errors = errors
def to_dict(self): 'Returns the model properties as a dict' result = {} for (attr, _) in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) e...
3,112,151,779,715,025,400
Returns the model properties as a dict
controlm_py/models/error_list.py
to_dict
dcompane/controlm_py
python
def to_dict(self): result = {} for (attr, _) in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) elif hasattr(value, 'to_dict'): ...
def to_str(self): 'Returns the string representation of the model' return pprint.pformat(self.to_dict())
5,849,158,643,760,736,000
Returns the string representation of the model
controlm_py/models/error_list.py
to_str
dcompane/controlm_py
python
def to_str(self): return pprint.pformat(self.to_dict())
def __repr__(self): 'For `print` and `pprint`' return self.to_str()
-8,960,031,694,814,905,000
For `print` and `pprint`
controlm_py/models/error_list.py
__repr__
dcompane/controlm_py
python
def __repr__(self): return self.to_str()
def __eq__(self, other): 'Returns true if both objects are equal' if (not isinstance(other, ErrorList)): return False return (self.__dict__ == other.__dict__)
-3,619,122,469,386,630,000
Returns true if both objects are equal
controlm_py/models/error_list.py
__eq__
dcompane/controlm_py
python
def __eq__(self, other): if (not isinstance(other, ErrorList)): return False return (self.__dict__ == other.__dict__)
def __ne__(self, other): 'Returns true if both objects are not equal' return (not (self == other))
7,764,124,047,908,058,000
Returns true if both objects are not equal
controlm_py/models/error_list.py
__ne__
dcompane/controlm_py
python
def __ne__(self, other): return (not (self == other))
def __call__(self, p): '\n Return the value of the link function. This is just a placeholder.\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n g(p) : array_like\n The value of the link function g(p) = z\n ...
3,439,035,475,943,891,500
Return the value of the link function. This is just a placeholder. Parameters ---------- p : array_like Probabilities Returns ------- g(p) : array_like The value of the link function g(p) = z
statsmodels/genmod/families/links.py
__call__
BioGeneTools/statsmodels
python
def __call__(self, p): '\n Return the value of the link function. This is just a placeholder.\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n g(p) : array_like\n The value of the link function g(p) = z\n ...
def inverse(self, z): '\n Inverse of the link function. Just a placeholder.\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor of the transformed variable\n in the IRLS algorithm for GLM.\n\n Returns\n -------\n ...
589,133,332,174,300,900
Inverse of the link function. Just a placeholder. Parameters ---------- z : array_like `z` is usually the linear predictor of the transformed variable in the IRLS algorithm for GLM. Returns ------- g^(-1)(z) : ndarray The value of the inverse of the link function g^(-1)(z) = p
statsmodels/genmod/families/links.py
inverse
BioGeneTools/statsmodels
python
def inverse(self, z): '\n Inverse of the link function. Just a placeholder.\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor of the transformed variable\n in the IRLS algorithm for GLM.\n\n Returns\n -------\n ...
def deriv(self, p): "\n Derivative of the link function g'(p). Just a placeholder.\n\n Parameters\n ----------\n p : array_like\n\n Returns\n -------\n g'(p) : ndarray\n The value of the derivative of the link function g'(p)\n " return NotImple...
-7,053,478,128,397,519,000
Derivative of the link function g'(p). Just a placeholder. Parameters ---------- p : array_like Returns ------- g'(p) : ndarray The value of the derivative of the link function g'(p)
statsmodels/genmod/families/links.py
deriv
BioGeneTools/statsmodels
python
def deriv(self, p): "\n Derivative of the link function g'(p). Just a placeholder.\n\n Parameters\n ----------\n p : array_like\n\n Returns\n -------\n g'(p) : ndarray\n The value of the derivative of the link function g'(p)\n " return NotImple...
def deriv2(self, p): "Second derivative of the link function g''(p)\n\n implemented through numerical differentiation\n " from statsmodels.tools.numdiff import _approx_fprime_cs_scalar return _approx_fprime_cs_scalar(p, self.deriv)
8,712,612,717,014,624,000
Second derivative of the link function g''(p) implemented through numerical differentiation
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "Second derivative of the link function g(p)\n\n implemented through numerical differentiation\n " from statsmodels.tools.numdiff import _approx_fprime_cs_scalar return _approx_fprime_cs_scalar(p, self.deriv)
def inverse_deriv(self, z): "\n Derivative of the inverse link function g^(-1)(z).\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g'^(-1)(z) : ndarray\n The valu...
9,001,918,539,944,982,000
Derivative of the inverse link function g^(-1)(z). Parameters ---------- z : array_like `z` is usually the linear predictor for a GLM or GEE model. Returns ------- g'^(-1)(z) : ndarray The value of the derivative of the inverse of the link function Notes ----- This reference implementation gives the correct ...
statsmodels/genmod/families/links.py
inverse_deriv
BioGeneTools/statsmodels
python
def inverse_deriv(self, z): "\n Derivative of the inverse link function g^(-1)(z).\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g'^(-1)(z) : ndarray\n The valu...
def inverse_deriv2(self, z): "\n Second derivative of the inverse link function g^(-1)(z).\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g'^(-1)(z) : ndarray\n ...
-3,968,055,418,984,185,300
Second derivative of the inverse link function g^(-1)(z). Parameters ---------- z : array_like `z` is usually the linear predictor for a GLM or GEE model. Returns ------- g'^(-1)(z) : ndarray The value of the second derivative of the inverse of the link function Notes ----- This reference implementation ...
statsmodels/genmod/families/links.py
inverse_deriv2
BioGeneTools/statsmodels
python
def inverse_deriv2(self, z): "\n Second derivative of the inverse link function g^(-1)(z).\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g'^(-1)(z) : ndarray\n ...
def _clean(self, p): '\n Clip logistic values to range (eps, 1-eps)\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n pclip : ndarray\n Clipped probabilities\n ' return np.clip(p, FLOAT_EPS, (1.0 - F...
-3,440,027,265,344,145,400
Clip logistic values to range (eps, 1-eps) Parameters ---------- p : array_like Probabilities Returns ------- pclip : ndarray Clipped probabilities
statsmodels/genmod/families/links.py
_clean
BioGeneTools/statsmodels
python
def _clean(self, p): '\n Clip logistic values to range (eps, 1-eps)\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n pclip : ndarray\n Clipped probabilities\n ' return np.clip(p, FLOAT_EPS, (1.0 - F...
def __call__(self, p): '\n The logit transform\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n z : ndarray\n Logit transform of `p`\n\n Notes\n -----\n g(p) = log(p / (1 - p))\n ' ...
240,232,997,412,097,760
The logit transform Parameters ---------- p : array_like Probabilities Returns ------- z : ndarray Logit transform of `p` Notes ----- g(p) = log(p / (1 - p))
statsmodels/genmod/families/links.py
__call__
BioGeneTools/statsmodels
python
def __call__(self, p): '\n The logit transform\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n z : ndarray\n Logit transform of `p`\n\n Notes\n -----\n g(p) = log(p / (1 - p))\n ' ...
def inverse(self, z): '\n Inverse of the logit transform\n\n Parameters\n ----------\n z : array_like\n The value of the logit transform at `p`\n\n Returns\n -------\n p : ndarray\n Probabilities\n\n Notes\n -----\n g^(-1)(z...
5,521,868,919,720,613,000
Inverse of the logit transform Parameters ---------- z : array_like The value of the logit transform at `p` Returns ------- p : ndarray Probabilities Notes ----- g^(-1)(z) = exp(z)/(1+exp(z))
statsmodels/genmod/families/links.py
inverse
BioGeneTools/statsmodels
python
def inverse(self, z): '\n Inverse of the logit transform\n\n Parameters\n ----------\n z : array_like\n The value of the logit transform at `p`\n\n Returns\n -------\n p : ndarray\n Probabilities\n\n Notes\n -----\n g^(-1)(z...
def deriv(self, p): "\n Derivative of the logit transform\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n g'(p) : ndarray\n Value of the derivative of logit transform at `p`\n\n Notes\n -----\n ...
-3,496,373,472,863,382,500
Derivative of the logit transform Parameters ---------- p : array_like Probabilities Returns ------- g'(p) : ndarray Value of the derivative of logit transform at `p` Notes ----- g'(p) = 1 / (p * (1 - p)) Alias for `Logit`: logit = Logit()
statsmodels/genmod/families/links.py
deriv
BioGeneTools/statsmodels
python
def deriv(self, p): "\n Derivative of the logit transform\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n g'(p) : ndarray\n Value of the derivative of logit transform at `p`\n\n Notes\n -----\n ...
def inverse_deriv(self, z): "\n Derivative of the inverse of the logit transform\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g'^(-1)(z) : ndarray\n The value ...
-8,336,254,912,463,244,000
Derivative of the inverse of the logit transform Parameters ---------- z : array_like `z` is usually the linear predictor for a GLM or GEE model. Returns ------- g'^(-1)(z) : ndarray The value of the derivative of the inverse of the logit function
statsmodels/genmod/families/links.py
inverse_deriv
BioGeneTools/statsmodels
python
def inverse_deriv(self, z): "\n Derivative of the inverse of the logit transform\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g'^(-1)(z) : ndarray\n The value ...
def deriv2(self, p): "\n Second derivative of the logit function.\n\n Parameters\n ----------\n p : array_like\n probabilities\n\n Returns\n -------\n g''(z) : ndarray\n The value of the second derivative of the logit function\n " v =...
-3,825,766,102,883,364,400
Second derivative of the logit function. Parameters ---------- p : array_like probabilities Returns ------- g''(z) : ndarray The value of the second derivative of the logit function
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n Second derivative of the logit function.\n\n Parameters\n ----------\n p : array_like\n probabilities\n\n Returns\n -------\n g(z) : ndarray\n The value of the second derivative of the logit function\n " v = (...
def __call__(self, p): '\n Power transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n z : array_like\n Power transform of x\n\n Notes\n -----\n g(p) = x**self.power\n...
6,490,001,479,540,673,000
Power transform link function Parameters ---------- p : array_like Mean parameters Returns ------- z : array_like Power transform of x Notes ----- g(p) = x**self.power
statsmodels/genmod/families/links.py
__call__
BioGeneTools/statsmodels
python
def __call__(self, p): '\n Power transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n z : array_like\n Power transform of x\n\n Notes\n -----\n g(p) = x**self.power\n...
def inverse(self, z): '\n Inverse of the power transform link function\n\n Parameters\n ----------\n `z` : array_like\n Value of the transformed mean parameters at `p`\n\n Returns\n -------\n `p` : ndarray\n Mean parameters\n\n Notes\n ...
766,649,145,307,345,200
Inverse of the power transform link function Parameters ---------- `z` : array_like Value of the transformed mean parameters at `p` Returns ------- `p` : ndarray Mean parameters Notes ----- g^(-1)(z`) = `z`**(1/`power`)
statsmodels/genmod/families/links.py
inverse
BioGeneTools/statsmodels
python
def inverse(self, z): '\n Inverse of the power transform link function\n\n Parameters\n ----------\n `z` : array_like\n Value of the transformed mean parameters at `p`\n\n Returns\n -------\n `p` : ndarray\n Mean parameters\n\n Notes\n ...
def deriv(self, p): "\n Derivative of the power transform\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n Derivative of power transform of `p`\n\n Notes\n -----\n g'(`...
-4,093,614,081,125,798,000
Derivative of the power transform Parameters ---------- p : array_like Mean parameters Returns ------- g'(p) : ndarray Derivative of power transform of `p` Notes ----- g'(`p`) = `power` * `p`**(`power` - 1)
statsmodels/genmod/families/links.py
deriv
BioGeneTools/statsmodels
python
def deriv(self, p): "\n Derivative of the power transform\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n Derivative of power transform of `p`\n\n Notes\n -----\n g'(`...
def deriv2(self, p): "\n Second derivative of the power transform\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g''(p) : ndarray\n Second derivative of the power transform of `p`\n\n Notes\n ...
-2,521,458,613,253,394,400
Second derivative of the power transform Parameters ---------- p : array_like Mean parameters Returns ------- g''(p) : ndarray Second derivative of the power transform of `p` Notes ----- g''(`p`) = `power` * (`power` - 1) * `p`**(`power` - 2)
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n Second derivative of the power transform\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g(p) : ndarray\n Second derivative of the power transform of `p`\n\n Notes\n -...
def inverse_deriv(self, z): "\n Derivative of the inverse of the power transform\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n The value ...
8,179,986,447,003,525,000
Derivative of the inverse of the power transform Parameters ---------- z : array_like `z` is usually the linear predictor for a GLM or GEE model. Returns ------- g^(-1)'(z) : ndarray The value of the derivative of the inverse of the power transform function
statsmodels/genmod/families/links.py
inverse_deriv
BioGeneTools/statsmodels
python
def inverse_deriv(self, z): "\n Derivative of the inverse of the power transform\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n The value ...
def inverse_deriv2(self, z): "\n Second derivative of the inverse of the power transform\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n Th...
4,198,307,413,071,056,000
Second derivative of the inverse of the power transform Parameters ---------- z : array_like `z` is usually the linear predictor for a GLM or GEE model. Returns ------- g^(-1)'(z) : ndarray The value of the derivative of the inverse of the power transform function
statsmodels/genmod/families/links.py
inverse_deriv2
BioGeneTools/statsmodels
python
def inverse_deriv2(self, z): "\n Second derivative of the inverse of the power transform\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n Th...
def __call__(self, p, **extra): '\n Log transform link function\n\n Parameters\n ----------\n x : array_like\n Mean parameters\n\n Returns\n -------\n z : ndarray\n log(x)\n\n Notes\n -----\n g(p) = log(p)\n ' x =...
-9,197,943,716,248,332,000
Log transform link function Parameters ---------- x : array_like Mean parameters Returns ------- z : ndarray log(x) Notes ----- g(p) = log(p)
statsmodels/genmod/families/links.py
__call__
BioGeneTools/statsmodels
python
def __call__(self, p, **extra): '\n Log transform link function\n\n Parameters\n ----------\n x : array_like\n Mean parameters\n\n Returns\n -------\n z : ndarray\n log(x)\n\n Notes\n -----\n g(p) = log(p)\n ' x =...
def inverse(self, z): '\n Inverse of log transform link function\n\n Parameters\n ----------\n z : ndarray\n The inverse of the link function at `p`\n\n Returns\n -------\n p : ndarray\n The mean probabilities given the value of the inverse `z`\...
-7,004,327,152,976,738,000
Inverse of log transform link function Parameters ---------- z : ndarray The inverse of the link function at `p` Returns ------- p : ndarray The mean probabilities given the value of the inverse `z` Notes ----- g^{-1}(z) = exp(z)
statsmodels/genmod/families/links.py
inverse
BioGeneTools/statsmodels
python
def inverse(self, z): '\n Inverse of log transform link function\n\n Parameters\n ----------\n z : ndarray\n The inverse of the link function at `p`\n\n Returns\n -------\n p : ndarray\n The mean probabilities given the value of the inverse `z`\...
def deriv(self, p): "\n Derivative of log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n derivative of log transform of x\n\n Notes\n -----\n ...
4,113,575,122,088,470,500
Derivative of log transform link function Parameters ---------- p : array_like Mean parameters Returns ------- g'(p) : ndarray derivative of log transform of x Notes ----- g'(x) = 1/x
statsmodels/genmod/families/links.py
deriv
BioGeneTools/statsmodels
python
def deriv(self, p): "\n Derivative of log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n derivative of log transform of x\n\n Notes\n -----\n ...
def deriv2(self, p): "\n Second derivative of the log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g''(p) : ndarray\n Second derivative of log transform of x\n\n Notes\n ...
5,554,803,495,933,919,000
Second derivative of the log transform link function Parameters ---------- p : array_like Mean parameters Returns ------- g''(p) : ndarray Second derivative of log transform of x Notes ----- g''(x) = -1/x^2
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n Second derivative of the log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g(p) : ndarray\n Second derivative of log transform of x\n\n Notes\n ...
def inverse_deriv(self, z): "\n Derivative of the inverse of the log transform link function\n\n Parameters\n ----------\n z : ndarray\n The inverse of the link function at `p`\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n The value of the deri...
-7,386,214,934,868,334,000
Derivative of the inverse of the log transform link function Parameters ---------- z : ndarray The inverse of the link function at `p` Returns ------- g^(-1)'(z) : ndarray The value of the derivative of the inverse of the log function, the exponential function
statsmodels/genmod/families/links.py
inverse_deriv
BioGeneTools/statsmodels
python
def inverse_deriv(self, z): "\n Derivative of the inverse of the log transform link function\n\n Parameters\n ----------\n z : ndarray\n The inverse of the link function at `p`\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n The value of the deri...
def __call__(self, p): '\n CDF link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n z : ndarray\n (ppf) inverse of CDF transform of p\n\n Notes\n -----\n g(`p`) = `dbn`.ppf(`p`...
-3,896,929,312,686,040,600
CDF link function Parameters ---------- p : array_like Mean parameters Returns ------- z : ndarray (ppf) inverse of CDF transform of p Notes ----- g(`p`) = `dbn`.ppf(`p`)
statsmodels/genmod/families/links.py
__call__
BioGeneTools/statsmodels
python
def __call__(self, p): '\n CDF link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n z : ndarray\n (ppf) inverse of CDF transform of p\n\n Notes\n -----\n g(`p`) = `dbn`.ppf(`p`...
def inverse(self, z): '\n The inverse of the CDF link\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the link function at `p`\n\n Returns\n -------\n p : ndarray\n Mean probabilities. The value of the inverse of CDF ...
-6,597,804,467,319,204,000
The inverse of the CDF link Parameters ---------- z : array_like The value of the inverse of the link function at `p` Returns ------- p : ndarray Mean probabilities. The value of the inverse of CDF link of `z` Notes ----- g^(-1)(`z`) = `dbn`.cdf(`z`)
statsmodels/genmod/families/links.py
inverse
BioGeneTools/statsmodels
python
def inverse(self, z): '\n The inverse of the CDF link\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the link function at `p`\n\n Returns\n -------\n p : ndarray\n Mean probabilities. The value of the inverse of CDF ...
def deriv(self, p): "\n Derivative of CDF link\n\n Parameters\n ----------\n p : array_like\n mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n The derivative of CDF transform at `p`\n\n Notes\n -----\n g'(`p`) = 1./...
-9,205,382,292,249,141,000
Derivative of CDF link Parameters ---------- p : array_like mean parameters Returns ------- g'(p) : ndarray The derivative of CDF transform at `p` Notes ----- g'(`p`) = 1./ `dbn`.pdf(`dbn`.ppf(`p`))
statsmodels/genmod/families/links.py
deriv
BioGeneTools/statsmodels
python
def deriv(self, p): "\n Derivative of CDF link\n\n Parameters\n ----------\n p : array_like\n mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n The derivative of CDF transform at `p`\n\n Notes\n -----\n g'(`p`) = 1./...
def deriv2(self, p): "\n Second derivative of the link function g''(p)\n\n implemented through numerical differentiation\n " p = self._clean(p) linpred = self.dbn.ppf(p) return ((- self.inverse_deriv2(linpred)) / (self.dbn.pdf(linpred) ** 3))
424,918,090,788,082,240
Second derivative of the link function g''(p) implemented through numerical differentiation
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n Second derivative of the link function g(p)\n\n implemented through numerical differentiation\n " p = self._clean(p) linpred = self.dbn.ppf(p) return ((- self.inverse_deriv2(linpred)) / (self.dbn.pdf(linpred) ** 3))
def deriv2_numdiff(self, p): "\n Second derivative of the link function g''(p)\n\n implemented through numerical differentiation\n " from statsmodels.tools.numdiff import _approx_fprime_scalar p = np.atleast_1d(p) return _approx_fprime_scalar(p, self.deriv, centered=True)
-7,543,261,515,321,102,000
Second derivative of the link function g''(p) implemented through numerical differentiation
statsmodels/genmod/families/links.py
deriv2_numdiff
BioGeneTools/statsmodels
python
def deriv2_numdiff(self, p): "\n Second derivative of the link function g(p)\n\n implemented through numerical differentiation\n " from statsmodels.tools.numdiff import _approx_fprime_scalar p = np.atleast_1d(p) return _approx_fprime_scalar(p, self.deriv, centered=True)
def inverse_deriv(self, z): "\n Derivative of the inverse link function\n\n Parameters\n ----------\n z : ndarray\n The inverse of the link function at `p`\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n The value of the derivative of the inverse...
-7,022,887,122,084,683,000
Derivative of the inverse link function Parameters ---------- z : ndarray The inverse of the link function at `p` Returns ------- g^(-1)'(z) : ndarray The value of the derivative of the inverse of the logit function. This is just the pdf in a CDFLink,
statsmodels/genmod/families/links.py
inverse_deriv
BioGeneTools/statsmodels
python
def inverse_deriv(self, z): "\n Derivative of the inverse link function\n\n Parameters\n ----------\n z : ndarray\n The inverse of the link function at `p`\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n The value of the derivative of the inverse...
def inverse_deriv2(self, z): "\n Second derivative of the inverse link function g^(-1)(z).\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g^(-1)''(z) : ndarray\n ...
-7,714,157,241,861,151,000
Second derivative of the inverse link function g^(-1)(z). Parameters ---------- z : array_like `z` is usually the linear predictor for a GLM or GEE model. Returns ------- g^(-1)''(z) : ndarray The value of the second derivative of the inverse of the link function Notes ----- This method should be overwri...
statsmodels/genmod/families/links.py
inverse_deriv2
BioGeneTools/statsmodels
python
def inverse_deriv2(self, z): "\n Second derivative of the inverse link function g^(-1)(z).\n\n Parameters\n ----------\n z : array_like\n `z` is usually the linear predictor for a GLM or GEE model.\n\n Returns\n -------\n g^(-1)(z) : ndarray\n T...
def inverse_deriv2(self, z): '\n Second derivative of the inverse link function\n\n This is the derivative of the pdf in a CDFLink\n\n ' return ((- z) * self.dbn.pdf(z))
-2,904,610,982,194,967,600
Second derivative of the inverse link function This is the derivative of the pdf in a CDFLink
statsmodels/genmod/families/links.py
inverse_deriv2
BioGeneTools/statsmodels
python
def inverse_deriv2(self, z): '\n Second derivative of the inverse link function\n\n This is the derivative of the pdf in a CDFLink\n\n ' return ((- z) * self.dbn.pdf(z))
def deriv2(self, p): "\n Second derivative of the link function g''(p)\n\n " p = self._clean(p) linpred = self.dbn.ppf(p) return (linpred / (self.dbn.pdf(linpred) ** 2))
-5,048,292,477,726,417,000
Second derivative of the link function g''(p)
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n \n\n " p = self._clean(p) linpred = self.dbn.ppf(p) return (linpred / (self.dbn.pdf(linpred) ** 2))
def deriv2(self, p): "\n Second derivative of the Cauchy link function.\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n g''(p) : ndarray\n Value of the second derivative of Cauchy link function at `p`\n ...
2,386,467,962,168,369,000
Second derivative of the Cauchy link function. Parameters ---------- p : array_like Probabilities Returns ------- g''(p) : ndarray Value of the second derivative of Cauchy link function at `p`
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n Second derivative of the Cauchy link function.\n\n Parameters\n ----------\n p : array_like\n Probabilities\n\n Returns\n -------\n g(p) : ndarray\n Value of the second derivative of Cauchy link function at `p`\n ...
def __call__(self, p): '\n C-Log-Log transform link function\n\n Parameters\n ----------\n p : ndarray\n Mean parameters\n\n Returns\n -------\n z : ndarray\n The CLogLog transform of `p`\n\n Notes\n -----\n g(p) = log(-log(...
1,949,863,504,250,344,400
C-Log-Log transform link function Parameters ---------- p : ndarray Mean parameters Returns ------- z : ndarray The CLogLog transform of `p` Notes ----- g(p) = log(-log(1-p))
statsmodels/genmod/families/links.py
__call__
BioGeneTools/statsmodels
python
def __call__(self, p): '\n C-Log-Log transform link function\n\n Parameters\n ----------\n p : ndarray\n Mean parameters\n\n Returns\n -------\n z : ndarray\n The CLogLog transform of `p`\n\n Notes\n -----\n g(p) = log(-log(...
def inverse(self, z): '\n Inverse of C-Log-Log transform link function\n\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the CLogLog link function at `p`\n\n Returns\n -------\n p : ndarray\n Mean parameters\n\n ...
1,582,492,503,606,269,000
Inverse of C-Log-Log transform link function Parameters ---------- z : array_like The value of the inverse of the CLogLog link function at `p` Returns ------- p : ndarray Mean parameters Notes ----- g^(-1)(`z`) = 1-exp(-exp(`z`))
statsmodels/genmod/families/links.py
inverse
BioGeneTools/statsmodels
python
def inverse(self, z): '\n Inverse of C-Log-Log transform link function\n\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the CLogLog link function at `p`\n\n Returns\n -------\n p : ndarray\n Mean parameters\n\n ...
def deriv(self, p): "\n Derivative of C-Log-Log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n The derivative of the CLogLog transform link function\n\n Not...
-2,819,306,609,872,138,000
Derivative of C-Log-Log transform link function Parameters ---------- p : array_like Mean parameters Returns ------- g'(p) : ndarray The derivative of the CLogLog transform link function Notes ----- g'(p) = - 1 / ((p-1)*log(1-p))
statsmodels/genmod/families/links.py
deriv
BioGeneTools/statsmodels
python
def deriv(self, p): "\n Derivative of C-Log-Log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n The derivative of the CLogLog transform link function\n\n Not...
def deriv2(self, p): "\n Second derivative of the C-Log-Log ink function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g''(p) : ndarray\n The second derivative of the CLogLog link function\n " ...
1,051,177,207,821,956,500
Second derivative of the C-Log-Log ink function Parameters ---------- p : array_like Mean parameters Returns ------- g''(p) : ndarray The second derivative of the CLogLog link function
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n Second derivative of the C-Log-Log ink function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g(p) : ndarray\n The second derivative of the CLogLog link function\n " p ...
def inverse_deriv(self, z): "\n Derivative of the inverse of the C-Log-Log transform link function\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the CLogLog link function at `p`\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n ...
1,415,103,664,460,894,500
Derivative of the inverse of the C-Log-Log transform link function Parameters ---------- z : array_like The value of the inverse of the CLogLog link function at `p` Returns ------- g^(-1)'(z) : ndarray The derivative of the inverse of the CLogLog link function
statsmodels/genmod/families/links.py
inverse_deriv
BioGeneTools/statsmodels
python
def inverse_deriv(self, z): "\n Derivative of the inverse of the C-Log-Log transform link function\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the CLogLog link function at `p`\n\n Returns\n -------\n g^(-1)'(z) : ndarray\n ...
def __call__(self, p): '\n Log-Log transform link function\n\n Parameters\n ----------\n p : ndarray\n Mean parameters\n\n Returns\n -------\n z : ndarray\n The LogLog transform of `p`\n\n Notes\n -----\n g(p) = -log(-log(p)...
-5,263,666,381,483,923,000
Log-Log transform link function Parameters ---------- p : ndarray Mean parameters Returns ------- z : ndarray The LogLog transform of `p` Notes ----- g(p) = -log(-log(p))
statsmodels/genmod/families/links.py
__call__
BioGeneTools/statsmodels
python
def __call__(self, p): '\n Log-Log transform link function\n\n Parameters\n ----------\n p : ndarray\n Mean parameters\n\n Returns\n -------\n z : ndarray\n The LogLog transform of `p`\n\n Notes\n -----\n g(p) = -log(-log(p)...
def inverse(self, z): '\n Inverse of Log-Log transform link function\n\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the LogLog link function at `p`\n\n Returns\n -------\n p : ndarray\n Mean parameters\n\n No...
455,481,010,670,740,100
Inverse of Log-Log transform link function Parameters ---------- z : array_like The value of the inverse of the LogLog link function at `p` Returns ------- p : ndarray Mean parameters Notes ----- g^(-1)(`z`) = exp(-exp(-`z`))
statsmodels/genmod/families/links.py
inverse
BioGeneTools/statsmodels
python
def inverse(self, z): '\n Inverse of Log-Log transform link function\n\n\n Parameters\n ----------\n z : array_like\n The value of the inverse of the LogLog link function at `p`\n\n Returns\n -------\n p : ndarray\n Mean parameters\n\n No...
def deriv(self, p): "\n Derivative of Log-Log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n The derivative of the LogLog transform link function\n\n Notes\...
2,950,546,271,047,227,400
Derivative of Log-Log transform link function Parameters ---------- p : array_like Mean parameters Returns ------- g'(p) : ndarray The derivative of the LogLog transform link function Notes ----- g'(p) = - 1 /(p * log(p))
statsmodels/genmod/families/links.py
deriv
BioGeneTools/statsmodels
python
def deriv(self, p): "\n Derivative of Log-Log transform link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g'(p) : ndarray\n The derivative of the LogLog transform link function\n\n Notes\...
def deriv2(self, p): "\n Second derivative of the Log-Log link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g''(p) : ndarray\n The second derivative of the LogLog link function\n " p ...
8,769,241,807,912,562,000
Second derivative of the Log-Log link function Parameters ---------- p : array_like Mean parameters Returns ------- g''(p) : ndarray The second derivative of the LogLog link function
statsmodels/genmod/families/links.py
deriv2
BioGeneTools/statsmodels
python
def deriv2(self, p): "\n Second derivative of the Log-Log link function\n\n Parameters\n ----------\n p : array_like\n Mean parameters\n\n Returns\n -------\n g(p) : ndarray\n The second derivative of the LogLog link function\n " p = ...