text string | label_name string | labels int64 |
|---|---|---|
ающий': [['Труба ЭСВ Dn 65 (УУТЭ П)', '140 мм', 1], ['Труба ВГП Dn 32', '80 мм', 2]],
'50-32 Обратный': [['Труба ЭСВ Dn 65 (УУТЭ О)', '140 мм', 1], ['Труба ВГП Dn 32', '80 мм', 2]],
'50-40 Подающий': [['Труба ЭСВ Dn 65 (УУТЭ П)', '140 мм', 1], ['Труба ВГП Dn 40', '90 мм', 2]],
'50-40 Обратный': ... | Python | 1 |
# custom_loss.py
import numpy as np
def exp_weight_rmse_loss(preds, train_data, alpha=None):
if alpha == None:
alpha = 0.2
y = train_data.get_label()
p = preds
w = np.exp(alpha * p)
d = p - y
grad = w*(2*d + alpha*d**2)
hess = w*(2 + 2*alpha*d + alpha**2*d**2)
return grad, hess
... | Python | 1 |
市辖区");
map.insert("511802", "四川省雅安市雨城区");
map.insert("511821", "四川省名山县");
map.insert("511822", "四川省荥经县");
map.insert("511823", "四川省汉源县");
map.insert("511824", "四川省石棉县");
map.insert("511825", "四川省天全县");
map.insert("511826", "四川省芦山县");
map.insert("511827", "... | Rust | 0 |
and self._multiplier != DEFAULT_MULTIPLIER
):
new_value = self._data_point.value * self._multiplier
return int(new_value) if self._data_point.hmtype == ParameterType.INTEGER else new_value
# Strings and enums with custom device class must be lowercase
... | Python | 1 |
TGCGnnn"
def test_bad_multiplex():
wt_basecalls = "GCACCTGTCCCCATAGAAATGGCTATGGAAAGCCTTTGGGTTATTTGCG"
epc = EditProposalCreator(wt_basecalls, use_ctrl_trace=False)
with pytest.raises(Exception):
epc.multiplex_proposal(20, 10, "test1", "test2", dropout=True)
def test_wt_proposal():
wt_basecal... | Python | 1 |
t` that is used to represent the effects of several elements with a
//! single Jones matrix. This element type is constructed from a user-supplied matrix.
//! If you can create the matrix for your custom element, then you can wrap it in a
//! `CompositeElement` and use it in a simulation.
//!
//! ### Beams
//! A beam c... | Rust | 0 |
f d dl Z ddlmZ eej D cg c] } | j d r| c} Z e j d eD dZ dZ
de j v re j d e j d < |