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

TGINSIGHT SIMILAR POSTS

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

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

Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic

Резултати

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

Пребарај: #aidevelopment

当前筛选 #aidevelopment清除筛选

Raqamli texnologiyalar va sun’iy intellektni rivojlantirish ilmiy tadqiqot instituti bilan hamkorlik masalalari muhokama etildi. 🇺🇿 UZB Обсуждены вопросы развития сотрудничества с Научно-исследовательским институтом развития цифровых технологий и искусственного интеллекта. 🇷🇺 RU Discussions on the development of cooperation with the Digital Technologies and Artificial Intelligence Research Institute have taken place. 🇬🇧 ENG #GraduateSchool#DigitalAI#Collaboration#AIDevelopment Web-site | Telegram | Facebook | Instagram

AI & Law

@ai_and_law · Post #367 · 05.08.2024 г., 07:04

NIST Releases Tool for Testing AI Model Risks The National Institute of Standards and Technology (NIST) has re-released Dioptra, a modular, open-source tool designed to assess and mitigate risks associated with AI models. Originally launched in 2022, Dioptra focuses on evaluating how malicious attacks, especially those that "poison" AI training data, can degrade an AI system's performance. This tool is crucial for companies training AI models and provides a common platform for simulating threats and conducting "red-teaming" exercises. NIST's initiative, supported by President Joe Biden’s executive order on AI, aims to help government agencies, small to medium-sized businesses, and the broader community assess AI developers' claims and enhance AI safety standards. Dioptra's release aligns with global efforts, such as the U.K.'s AI Safety Institute’s Inspect tool, to advance AI model testing and ensure responsible AI development. While Dioptra offers significant benefits, it currently works only with models that can be downloaded and used locally, excluding those gated behind APIs like OpenAI’s GPT-4. Despite this limitation, Dioptra represents a vital step towards understanding and mitigating AI risks, promoting a safer AI ecosystem. #AI#AIDevelopment#AISafety#NIST#Cybersecurity

AI & Law

@ai_and_law · Post #71 · 31.07.2023 г., 07:04

Introducing the Frontier Model Forum: Advancing Safe AI Development Hey AI enthusiasts! Four major players in the AI industry, including Google, Microsoft, OpenAI, and Anthropic, have come together to form the Frontier Model Forum. The primary goal of this industry body is to ensure the safe and responsible development of advanced AI models that go beyond the capabilities of current technologies. Brad Smith, President of Microsoft, emphasized the importance of taking responsibility in developing AI technology, making sure it remains secure, safe, and under human control. The Frontier Model Forum has outlined key objectives, including promoting AI safety research, encouraging responsible AI model deployment, discussing trust and safety concerns with policymakers and academics, and leveraging AI for societal benefits, such as addressing climate change and detecting cancer. #AIandLaw#AIdevelopment#FrontierModelForum#AIRegulation#TechNews

AI & Law

@ai_and_law · Post #159 · 08.11.2023 г., 08:04

G7 Leaders Agree on International Guiding Principles for AI Development Hello, everybody! The G7 leaders have reached a consensus on International Guiding Principles and a voluntary Code of Conduct for AI developers under the Hiroshima AI process. The intention is to harmonize international standards with EU regulations to ensure the responsible and trustworthy development of AI. The eleven principles provide a roadmap for the responsible advancement, deployment, and utilization of advanced AI systems, including foundation models and generative AI. These principles encompass commitments to address risks, prevent misuse, promote responsible information sharing, mandate incident reporting, bolster cybersecurity measures, and introduce a labeling system for AI-generated content. #G7Leaders#AI#AIStandards#EURegulations#AIAct#AIDevelopment

Crypto M - Crypto News

@CryptoM · Post #64578 · 09.04.2026 г., 09:10

🚀 AI TRENDS | OpenAI Plans Phased Rollout of New Model OpenAI is preparing to introduce a new model in a phased manner, according to Axios. The company aims to ensure a smooth deployment by gradually releasing the model, allowing for adjustments based on initial feedback and performance. This approach is intended to optimize the model's integration and effectiveness across various applications. OpenAI's strategy reflects its commitment to maintaining high standards in AI development and deployment. #OpenAI#AI#AITrends#ModelDeployment#TechNews#Innovation#AIdevelopment

Crypto M - Crypto News

@CryptoM · Post #65248 · 12.04.2026 г., 09:35

🚀 Tether CEO Advocates for Open AI Development Tether CEO Paolo Ardoino has expressed his views on the development of artificial intelligence, stating that AI should be as open as freedom. According to Odaily, Ardoino criticized the centralized approach to AI development, describing it as a 'dead end.' In contrast to the closed AI systems being developed by major tech companies, Tether is exploring alternative methods through QVAC, which focuses on running AI models on local devices. This approach aims to give users control over their data and computing power, aligning with the crypto industry's core principle of self-custody, where users maintain autonomy over their data and computational resources. #Tether#CEO#AIdevelopment#openAI#freedom#centralizedAI#selfcustody#crypto#localdevices#dataprivacy

Crypto M - Crypto News

@CryptoM · Post #65110 · 11.04.2026 г., 02:24

🚀 AI TRENDS | OpenAI's Sam Altman Addresses AI Development Concerns and Recent Incident OpenAI founder Sam Altman has expressed understanding of societal fears regarding the rapid development of artificial intelligence. According to Odaily, Altman acknowledged that the current period is marked by significant technological change, with associated risks escalating to systemic challenges at the societal level. He emphasized that AI power should not be concentrated in a few institutions and advocated for broader distribution through technological democratization and institutional constraints. Addressing a recent incident where his residence was targeted with a Molotov cocktail, Altman admitted to underestimating the impact of public narratives and emotions amid AI-related anxieties. He also acknowledged mistakes in company governance and conflict management, offering apologies for past actions. Furthermore, Altman reiterated his decision to reject Elon Musk's attempts to control OpenAI, ensuring the company's independent development. Previously, it was reported that the OpenAI founder's residence was attacked with a Molotov cocktail. #AI#OpenAI#SamAltman#AIdevelopment#technologicalchange#AIsociety#democratization#institutionalconstraints#Molotovcocktail#publicnarratives#conflictmanagement#ElonMusk#companygovernance#independence