text
stringlengths 1
93.6k
|
|---|
"pin": "ุชุซุจูุช ๐",
|
"unpin": "ุงูุบุงุก ุชุซุจูุช ๐",
|
"ban": "ุงูุนุถู [{}](tg://user?id={}) ุชู
ุญุธุฑู โ",
|
"ban_id": "ุงูุนุถู {} ุชู
ุญุธุฑู",
|
"banError": "ุงูุนุถู ุบูุฑ ู
ุญุธูุฑ ๐",
|
"muteError": "ุงูุนุถู ููุณ ู
ูุชูู
๐",
|
"admins": {
|
"0": "ูุง ููุฌุฏ ู
ุดุฑููู โ",
|
"1": "๐ค ุงูู
ุฏูุฑ : {}\nุงูู
ุดุฑููู :\n{}"
|
},
|
"filter": "โ ๏ธ ุชู
ุงุถุงูุฉ ุงูููู
ุฉ ููุงุฆู
ุฉ ุงูููู
ุงุช ุงูู
ุญุธูุฑุฉ :\n{}",
|
"unfilter": "โ ๏ธ ุชู
ุงุฒุงูุฉ ุงูููู
ุฉ ู
ู ูุงุฆู
ุฉ ุงูููู
ุงุช ุงูู
ุญุธูุฑุฉ :\n{}",
|
"filters": "๐ค ุงูููู
ุงุช ุงูู
ุญุธูุฑุฉ :\n{}",
|
"mute": "ุงูุนุถู [{}](tg://user?id={}) ุชู
ุงุถุงูุชู ููุงุฆู
ุฉ ุงูู
ูุชูู
ูู ูู
ุฏุฉ {} ููู
",
|
"unmute": "ุชู
ุงูุบุงุก ุงููุชู
:)",
|
"muteAll": {
|
"0": "ุชู
ููู ุงูู
ุฌู
ูุนุฉ โ
",
|
"1": "ุงูู
ุฌู
ูุนุฉ ู
ูููุฉ ู
ุณุจูุง โ
"
|
},
|
"unmuteAll": {
|
"0": "ุชู
ูุชุญ ุงูู
ุฌู
ูุนุฉ โ
",
|
"1": "ุงูู
ุฌู
ูุนุฉ ุบูุฑ ู
ูููุฉ โ
"
|
},
|
"admins_set": ""
|
},
|
"admin": {
|
"add": {
|
"0": "ุงูู
ุฌู
ูุนุฉ ู
ูุนูุฉ ู
ุณุจูุง ๐",
|
"1": "ุชู
ุชูุนูู ุงูุจูุช ูู ุงูู
ุฌู
ูุนุฉ โ
"
|
},
|
"rem": {
|
"0": "ุชู
ุงุฒุงูุฉ ุงูุจูุช ู
ู ุงูู
ุฌู
ูุนุฉ ๐ข",
|
"1": "ุงูู
ุฌู
ูุนุฉ ููุณุช ู
ูุนูุฉ ๐ข"
|
}
|
},
|
"who": {
|
"name": "๐ค *{} {}*",
|
"group": "๐ฅ *{}*",
|
"id": "๐ \\[{}]",
|
"username": "โถ๏ธ @{}"
|
}
|
}
|
}
|
# <FILESEP>
|
# Copyright 2023 NNAISENSE SA
|
#
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
# you may not use this file except in compliance with the License.
|
# You may obtain a copy of the License at
|
#
|
# http://www.apache.org/licenses/LICENSE-2.0
|
#
|
# Unless required by applicable law or agreed to in writing, software
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# See the License for the specific language governing permissions and
|
# limitations under the License.
|
import torch
|
import functools
|
from abc import abstractmethod
|
from torch.distributions.normal import Normal
|
from torch.distributions.categorical import Categorical as torch_Categorical
|
from torch.distributions.bernoulli import Bernoulli as torch_Bernoulli
|
from torch.distributions.mixture_same_family import MixtureSameFamily
|
from torch.distributions.uniform import Uniform
|
from math import log
|
from utils_model import (
|
safe_exp,
|
safe_log,
|
idx_to_float,
|
float_to_idx,
|
quantize, sandwich,
|
)
|
class CtsDistribution:
|
@abstractmethod
|
def log_prob(self, x):
|
pass
|
@abstractmethod
|
def sample(self):
|
pass
|
class DiscreteDistribution:
|
@property
|
@abstractmethod
|
def probs(self):
|
pass
|
@functools.cached_property
|
def log_probs(self):
|
return safe_log(self.probs)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.