repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
2HDM_FR | 2HDM_FR-master/UFOs/Type-LS/2HDM_CPC_Type-LS_NLO_cba_UFO/parameters.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:54:25
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a def... | 14,464 | 30.652079 | 125 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-LS/2HDM_CPC_Type-LS_NLO_cba_UFO/write_param_card.py |
__date__ = "6 March 2020"
__author__ = 'olivier.mattelaer@uclouvain.be'
class ParamCardWriter(object):
header = \
"""######################################################################\n""" + \
"""## PARAM_CARD AUTOMATICALY GENERATED BY THE UFO #####################\n""" + \
"""#############... | 6,784 | 36.486188 | 93 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-LS/2HDM_CPC_Type-LS_NLO_cba_UFO/__init__.py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
#import write_param_card
import propagators
import object_library
import function_library
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_... | 935 | 17.352941 | 51 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-LS/2HDM_CPC_Type-LS_NLO_cba_UFO/coupling_orders.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:54:26
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | 494 | 26.5 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-LS/2HDM_CPC_Type-LS_NLO_cba_UFO/particles.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:54:25
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(p... | 11,738 | 26.173611 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/propagators.py | # This file was automatically created by FeynRules 2.0 (static file)
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (November 6, 2010)
# Date: Mon 1 Oct 2012 14:58:26
from object_library import all_propagators, Propagator
# define only once the denominator since this is always the same
denominator = "P('mu', ... | 1,351 | 36.555556 | 120 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
GC_1 = Coupling(n... | 133,565 | 119.983696 | 4,719 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/function_library.py | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
__date__ = "22 July 2010"
__... | 1,949 | 26.083333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
... | 69,309 | 35.098958 | 95 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/decays.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_decays, Decay
import particles as P
Decay_b = Decay(name = 'Decay_b',
particle = P.b,
pa... | 173,262 | 910.910526 | 23,997 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/object_library.py | ##
##
## Feynrules Header
##
##
##
##
##
import cmath
import re
class UFOError(Exception):
"""Exception raised if when inconsistencies are detected in the UFO model."""
pass
class UFOBaseClass(object):
"""The class from which all FeynRules classes are derived."""
require_args = []
def _... | 10,877 | 28.085561 | 199 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/CT_couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:31
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
| 303 | 24.333333 | 80 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/lorentz.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_lorentz, Lorentz
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
try:
import form_fac... | 2,752 | 30.643678 | 153 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/parameters.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a def... | 25,652 | 30.986284 | 125 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/write_param_card.py |
__date__ = "6 March 2020"
__author__ = 'olivier.mattelaer@uclouvain.be'
class ParamCardWriter(object):
header = \
"""######################################################################\n""" + \
"""## PARAM_CARD AUTOMATICALY GENERATED BY THE UFO #####################\n""" + \
"""#############... | 6,784 | 36.486188 | 93 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/__init__.py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
#import write_param_card
import propagators
import object_library
import function_library
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_... | 935 | 17.352941 | 51 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/coupling_orders.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | 446 | 25.294118 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_cba_UFO/particles.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(p... | 11,727 | 26.148148 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/propagators.py | # This file was automatically created by FeynRules 2.0 (static file)
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (November 6, 2010)
# Date: Mon 1 Oct 2012 14:58:26
from object_library import all_propagators, Propagator
# define only once the denominator since this is always the same
denominator = "P('mu', ... | 1,351 | 36.555556 | 120 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/CT_vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:49
from object_library import all_vertices, all_CTvertices, Vertex, CTVertex
import particles as P
import CT_couplings as C
import lorentz as L
V_1 = CTVe... | 43,583 | 47 | 2,010 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
GC_1 = Coupling(n... | 118,466 | 179.589939 | 4,719 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/function_library.py | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
__date__ = "22 July 2010"
__... | 1,949 | 26.083333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
... | 52,367 | 34.193548 | 107 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/decays.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from object_library import all_decays, Decay
import particles as P
Decay_b = Decay(name = 'Decay_b',
particle = P.b,
pa... | 139,045 | 1,335.980769 | 23,997 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/object_library.py | ##
##
## Feynrules Header
##
##
##
##
##
import cmath
import re
class UFOError(Exception):
"""Exception raised if when inconsistencies are detected in the UFO model."""
pass
class UFOBaseClass(object):
"""The class from which all FeynRules classes are derived."""
require_args = []
def _... | 10,877 | 28.085561 | 199 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/CT_couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
R2GC_162_1 = Coup... | 52,502 | 64.302239 | 1,018 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/lorentz.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from object_library import all_lorentz, Lorentz
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
try:
import form_fac... | 5,636 | 31.964912 | 247 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/parameters.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a def... | 14,464 | 30.652079 | 125 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/write_param_card.py |
__date__ = "6 March 2020"
__author__ = 'olivier.mattelaer@uclouvain.be'
class ParamCardWriter(object):
header = \
"""######################################################################\n""" + \
"""## PARAM_CARD AUTOMATICALY GENERATED BY THE UFO #####################\n""" + \
"""#############... | 6,784 | 36.486188 | 93 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/__init__.py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
#import write_param_card
import propagators
import object_library
import function_library
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_... | 935 | 17.352941 | 51 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/coupling_orders.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | 494 | 26.5 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_NLO_cba_UFO/particles.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:56:48
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(p... | 11,738 | 26.173611 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/propagators.py | # This file was automatically created by FeynRules 2.0 (static file)
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (November 6, 2010)
# Date: Mon 1 Oct 2012 14:58:26
from object_library import all_propagators, Propagator
# define only once the denominator since this is always the same
denominator = "P('mu', ... | 1,351 | 36.555556 | 120 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
GC_1 = Coupling(n... | 139,433 | 112.916667 | 4,719 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/function_library.py | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
__date__ = "22 July 2010"
__... | 1,949 | 26.083333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
... | 73,134 | 35.585793 | 114 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/decays.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_decays, Decay
import particles as P
Decay_b = Decay(name = 'Decay_b',
particle = P.b,
pa... | 173,262 | 910.910526 | 23,997 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/object_library.py | ##
##
## Feynrules Header
##
##
##
##
##
import cmath
import re
class UFOError(Exception):
"""Exception raised if when inconsistencies are detected in the UFO model."""
pass
class UFOBaseClass(object):
"""The class from which all FeynRules classes are derived."""
require_args = []
def _... | 10,877 | 28.085561 | 199 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/CT_couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:31
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
| 303 | 24.333333 | 80 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/lorentz.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_lorentz, Lorentz
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
try:
import form_fac... | 8,921 | 46.457447 | 354 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/parameters.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a def... | 28,321 | 31.257403 | 179 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/write_param_card.py |
__date__ = "6 March 2020"
__author__ = 'olivier.mattelaer@uclouvain.be'
class ParamCardWriter(object):
header = \
"""######################################################################\n""" + \
"""## PARAM_CARD AUTOMATICALY GENERATED BY THE UFO #####################\n""" + \
"""#############... | 6,784 | 36.486188 | 93 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/__init__.py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
#import write_param_card
import propagators
import object_library
import function_library
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_... | 935 | 17.352941 | 51 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/coupling_orders.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | 1,899 | 32.333333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-FL/2HDM_CPC_Type-FL_EFF_cba_UFO/particles.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:55:30
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(p... | 11,727 | 26.148148 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/propagators.py | # This file was automatically created by FeynRules 2.0 (static file)
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (November 6, 2010)
# Date: Mon 1 Oct 2012 14:58:26
from object_library import all_propagators, Propagator
# define only once the denominator since this is always the same
denominator = "P('mu', ... | 1,351 | 36.555556 | 120 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
GC_1 = Coupling(n... | 139,415 | 112.901961 | 4,719 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/function_library.py | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
__date__ = "22 July 2010"
__... | 1,949 | 26.083333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
... | 73,134 | 35.585793 | 114 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/decays.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_decays, Decay
import particles as P
Decay_b = Decay(name = 'Decay_b',
particle = P.b,
pa... | 173,262 | 910.910526 | 23,997 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/object_library.py | ##
##
## Feynrules Header
##
##
##
##
##
import cmath
import re
class UFOError(Exception):
"""Exception raised if when inconsistencies are detected in the UFO model."""
pass
class UFOBaseClass(object):
"""The class from which all FeynRules classes are derived."""
require_args = []
def _... | 10,877 | 28.085561 | 199 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/CT_couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:44
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
| 303 | 24.333333 | 80 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/lorentz.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_lorentz, Lorentz
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
try:
import form_fac... | 8,921 | 46.457447 | 354 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/parameters.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a def... | 28,321 | 31.257403 | 179 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/write_param_card.py |
__date__ = "6 March 2020"
__author__ = 'olivier.mattelaer@uclouvain.be'
class ParamCardWriter(object):
header = \
"""######################################################################\n""" + \
"""## PARAM_CARD AUTOMATICALY GENERATED BY THE UFO #####################\n""" + \
"""#############... | 6,784 | 36.486188 | 93 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/__init__.py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
#import write_param_card
import propagators
import object_library
import function_library
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_... | 935 | 17.352941 | 51 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/coupling_orders.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | 1,899 | 32.333333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_EFF_cba_UFO/particles.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(p... | 11,727 | 26.148148 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/propagators.py | # This file was automatically created by FeynRules 2.0 (static file)
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (November 6, 2010)
# Date: Mon 1 Oct 2012 14:58:26
from object_library import all_propagators, Propagator
# define only once the denominator since this is always the same
denominator = "P('mu', ... | 1,351 | 36.555556 | 120 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
GC_1 = Coupling(n... | 133,547 | 119.967391 | 4,719 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/function_library.py | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
__date__ = "22 July 2010"
__... | 1,949 | 26.083333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
... | 69,309 | 35.098958 | 95 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/decays.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_decays, Decay
import particles as P
Decay_b = Decay(name = 'Decay_b',
particle = P.b,
pa... | 173,262 | 910.910526 | 23,997 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/object_library.py | ##
##
## Feynrules Header
##
##
##
##
##
import cmath
import re
class UFOError(Exception):
"""Exception raised if when inconsistencies are detected in the UFO model."""
pass
class UFOBaseClass(object):
"""The class from which all FeynRules classes are derived."""
require_args = []
def _... | 10,877 | 28.085561 | 199 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/CT_couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:44
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
| 303 | 24.333333 | 80 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/lorentz.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_lorentz, Lorentz
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
try:
import form_fac... | 2,752 | 30.643678 | 153 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/parameters.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a def... | 25,652 | 30.986284 | 125 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/write_param_card.py |
__date__ = "6 March 2020"
__author__ = 'olivier.mattelaer@uclouvain.be'
class ParamCardWriter(object):
header = \
"""######################################################################\n""" + \
"""## PARAM_CARD AUTOMATICALY GENERATED BY THE UFO #####################\n""" + \
"""#############... | 6,784 | 36.486188 | 93 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/__init__.py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
#import write_param_card
import propagators
import object_library
import function_library
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_... | 935 | 17.352941 | 51 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/coupling_orders.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | 446 | 25.294118 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_cba_UFO/particles.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:50:43
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(p... | 11,727 | 26.148148 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/propagators.py | # This file was automatically created by FeynRules 2.0 (static file)
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (November 6, 2010)
# Date: Mon 1 Oct 2012 14:58:26
from object_library import all_propagators, Propagator
# define only once the denominator since this is always the same
denominator = "P('mu', ... | 1,351 | 36.555556 | 120 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/CT_vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:02
from object_library import all_vertices, all_CTvertices, Vertex, CTVertex
import particles as P
import CT_couplings as C
import lorentz as L
V_1 = CTVe... | 43,583 | 47 | 2,010 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:02
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
GC_1 = Coupling(n... | 118,460 | 179.580793 | 4,719 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/function_library.py | # This file is part of the UFO.
#
# This file contains definitions for functions that
# are extensions of the cmath library, and correspond
# either to functions that are in cmath, but inconvenient
# to access from there (e.g. z.conjugate()),
# or functions that are simply not defined.
#
#
__date__ = "22 July 2010"
__... | 1,949 | 26.083333 | 75 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/vertices.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:01
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
... | 52,367 | 34.193548 | 107 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/decays.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:02
from object_library import all_decays, Decay
import particles as P
Decay_b = Decay(name = 'Decay_b',
particle = P.b,
pa... | 139,045 | 1,335.980769 | 23,997 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/object_library.py | ##
##
## Feynrules Header
##
##
##
##
##
import cmath
import re
class UFOError(Exception):
"""Exception raised if when inconsistencies are detected in the UFO model."""
pass
class UFOBaseClass(object):
"""The class from which all FeynRules classes are derived."""
require_args = []
def _... | 10,877 | 28.085561 | 199 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/CT_couplings.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:02
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
R2GC_162_1 = Coup... | 52,502 | 64.302239 | 1,018 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/lorentz.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:02
from object_library import all_lorentz, Lorentz
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
try:
import form_fac... | 5,636 | 31.964912 | 247 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/parameters.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:01
from object_library import all_parameters, Parameter
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
# This is a def... | 14,464 | 30.652079 | 125 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/write_param_card.py |
__date__ = "6 March 2020"
__author__ = 'olivier.mattelaer@uclouvain.be'
class ParamCardWriter(object):
header = \
"""######################################################################\n""" + \
"""## PARAM_CARD AUTOMATICALY GENERATED BY THE UFO #####################\n""" + \
"""#############... | 6,784 | 36.486188 | 93 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/__init__.py |
import particles
import couplings
import lorentz
import parameters
import vertices
import coupling_orders
#import write_param_card
import propagators
import object_library
import function_library
all_particles = particles.all_particles
all_vertices = vertices.all_vertices
all_couplings = couplings.all_couplings
all_... | 935 | 17.352941 | 51 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/coupling_orders.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:02
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | 494 | 26.5 | 74 | py |
2HDM_FR | 2HDM_FR-master/UFOs/Type-II/2HDM_CPC_Type-II_NLO_cba_UFO/particles.py | # This file was automatically created by FeynRules 2.3.49
# Mathematica version: 13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)
# Date: Fri 8 Jul 2022 20:52:01
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(p... | 11,738 | 26.173611 | 74 | py |
AlignShift | AlignShift-master/setup.py | import os
import platform
import subprocess
import time
from setuptools import Extension, dist, find_packages, setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
dist.Distribution().fetch_build_eggs(['Cython', 'numpy>=1.11.1'])
import numpy as np # noqa: E402, isort:skip
from Cython.Build impo... | 6,587 | 30.222749 | 79 | py |
AlignShift | AlignShift-master/nn/utiles.py | from torch._six import container_abcs
import collections.abc
from itertools import repeat
def as_triple(x, d_value=1):
if isinstance(x, container_abcs.Iterable):
x = list(x)
if len(x)==2:
x = [d_value] + x
return x
else:
return [d_value] + [x] * 2
def _ntuple_same... | 1,076 | 25.268293 | 86 | py |
AlignShift | AlignShift-master/nn/converter.py |
import torch.nn as nn
import functools
import torch
from ..utiles import _triple_same
from collections import OrderedDict
#TODO #1#通过名字来跳过相应的层。
#2#2d weighjts 转3d weights
#3# sycnb
class Converter():
"""
Decorator class for converting 2d convolution modules
to corresponding conv version in an... | 7,688 | 45.319277 | 185 | py |
AlignShift | AlignShift-master/nn/models/truncated_densenet3d_alignshift.py | # Ke Yan, Imaging Biomarkers and Computer-Aided Diagnosis Laboratory,
from collections import namedtuple
import torch
import torch.nn.functional as F
from torch import nn
import torchvision.models as models
from torchvision.models.densenet import model_urls
import math
import torch.utils.model_zoo as model_zoo
import ... | 10,288 | 42.413502 | 140 | py |
AlignShift | AlignShift-master/nn/models/truncated_densenet3d_a3d.py | # Ke Yan, Imaging Biomarkers and Computer-Aided Diagnosis Laboratory,
from collections import namedtuple
import torch
import torch.nn.functional as F
from torch import nn
import torchvision.models as models
from torchvision.models.densenet import model_urls
import math
import torch.utils.model_zoo as model_zoo
import ... | 9,821 | 41.154506 | 128 | py |
AlignShift | AlignShift-master/nn/models/__init__.py | from .truncated_densenet3d_alignshift import DenseNetCustomTrunc3dAlign
from .truncated_densenet3d_tsm import DenseNetCustomTrunc3dTSM
from .truncated_densenet3d_a3d import DenseNetCustomTrunc3dA3D | 197 | 65 | 71 | py |
AlignShift | AlignShift-master/nn/models/truncated_densenet3d_tsm.py | # Ke Yan, Imaging Biomarkers and Computer-Aided Diagnosis Laboratory,
from collections import namedtuple
import torch
import torch.nn.functional as F
from torch import nn
import torchvision.models as models
from torchvision.models.densenet import model_urls
import math
import torch.utils.model_zoo as model_zoo
import ... | 9,413 | 41.026786 | 120 | py |
AlignShift | AlignShift-master/nn/operators/tsmconv.py | import torch
from torch.nn.modules.conv import _ConvNd
from torch.nn import functional as F
import numpy as np
from ..utiles import as_triple, _pair_same
class TSMConv(_ConvNd):
'''
Args:
n_fold (int): Divisor of channels to shift.
tsm(bool) : if apply tsm operation before conv
inplac... | 3,243 | 32.791667 | 86 | py |
AlignShift | AlignShift-master/nn/operators/a3dconv.py | import torch
from torch.nn.modules.conv import _ConvNd
from torch.nn import functional as F
from torch.nn import init
import numpy as np
from ..utiles import as_triple, _pair_same
from torch.nn.parameter import Parameter
class A3DConv(_ConvNd):
'''
Args:
dimension (int): number of dimensions to shift... | 3,716 | 35.441176 | 105 | py |
AlignShift | AlignShift-master/nn/operators/__init__.py | from .alignshiftconv import AlignShiftConv
from .tsmconv import TSMConv
from .a3dconv import A3DConv | 100 | 32.666667 | 42 | py |
AlignShift | AlignShift-master/nn/operators/alignshiftconv.py | import torch
from torch.nn.modules.conv import _ConvNd
from torch.nn import functional as F
import numpy as np
from ..utiles import as_triple, _pair_same
class AlignShiftConv(_ConvNd):
'''
Args:
n_fold (int): Divisor of channels to shift.
alignshift(bool): if apply alignshift operation before... | 5,671 | 48.321739 | 150 | py |
AlignShift | AlignShift-master/deeplesion/train_dist.py |
from __future__ import division
import argparse
import sys
#sys.path.append('add your worck space here')
import os
import torch
torch.multiprocessing.set_sharing_strategy('file_system')
from mmcv import Config
from mmdet import __version__
from mmdet.apis import (get_root_logger, init_dist, set_random_seed,
... | 4,031 | 32.04918 | 77 | py |
AlignShift | AlignShift-master/deeplesion/eval.py | import torch
torch.multiprocessing.set_sharing_strategy('file_system')
import numpy as np
from pycocotools import mask as mutils
import sys
# sys.path.append('/your alignshit path')
import os
# from dataset import DeepLesionDataset
import cv2
import random
import matplotlib.pyplot as plt
from mmcv import Config
import ... | 8,161 | 37.866667 | 156 | py |
AlignShift | AlignShift-master/deeplesion/ENVIRON.py | data_root = '/mnt/data2/deeplesion/dataset/'
| 45 | 22 | 44 | py |
AlignShift | AlignShift-master/deeplesion/evaluation/evaluation_metrics.py | import numpy as np
from scipy import interpolate
import torch
def recall(pred, target):
pred_label = pred.detach().clone()
pred_label[pred_label>=0] = 1
pred_label[pred_label<0] = 0
pred_label = pred_label.flatten()
correct = pred_label.eq(target) * target
return correct.sum().to(torch.float... | 3,239 | 32.402062 | 106 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.