TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #242 · 7 мај

Теперь запакуем строку. В этом случае следует передавать тип данных bytes. >>> struct.pack('=s', b'a') b'a' Для записи слова следует указывать количество символов. >>> struct.pack('=5s', b'hello') b'hello' Кстати, запакованный вид соответствует исходному тексту. Всё верно, символ есть в таблице ASCII, то есть его код попадает в диапазон 0-127, он может быть записан одним байтом и имеет визуальное представление. А вот что будет если добавить символ вне ASCII >>> struct.pack(f'=s', b'ё') SyntaxError: bytes can only contain ASCII literal characters. Ошибка возникла еще на этапе создания объекта bytes, который не может содержать такой символ. Поэтому надо кодировать эти байты из строки. >>> enc = 'ёжик'.encode('utf-8') >>> struct.pack(f'={len(enc)}s', enc) b'\xd1\x91\xd0\xb6\xd0\xb8\xd0\xba' Заметьте, длина такой строки в байтах отличается от исходной длины, так как символы вне ASCII записываются двумя байтами и более. Поэтому здесь формат создаём на лету, используя получившуюся длину как каунтер токена. #libs#basic

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #mlteam

当前筛选 #mlteam清除筛选
Data Science Jobs

@datasciencejobs · Post #1422 · 17.04.2023 г., 06:20

ML engineer Team Lead #vacancy#вакансия#remote#удаленно#MLTeam Lead #NLP#RecSys#fulltime Role: ML Team Lead Company: http://Whisk.com Location: Remote Compensation: from 8k usd monthly About us: Whisk is the thriving cooking community available on iOS/Android, Web and Samsung hardware (Whisk was acquired by Samsung in 2019). Today we reach millions of users across many markets and languages. Our stack: Python, PyTorch, CatBoost, Pytorch Lightning, Transformers, Nvidia Triton, ClickHouse, Mongo, MySQL, Elasticsearch, MLFlow, DVC, KubeFlow, Kubernetes, GCP Required Qualifications: • 6+ years working in a software/machine learning engineering role with NLP and/or RecSys technologies. • Strong machine learning background, and experience in building and productionizing machine learning models. • Experience leading a team of machine learning engineers and managing project roadmap with data, product, and other engineering teams. • A history of mentoring other machine learning engineers, if not being a direct manager and scaling a team successfully. • Strong communication skills and the ability to lead and work with others in a closely collaborative team environment. • Strong leadership, problem-solving, and relationship-building skills. • Working proficiency in English. Type of Work: Contract-based (Long-term project), full-time (40 hours per week), 100% remotely. If you interested in this opportunity you can text me in telegram @polina_whisk. ❗️Please note that currently we only can hire people who located outside of Russia or Belarus.