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

Резултати

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

Пребарај: #euregulations

当前筛选 #euregulations清除筛选
AI & Law

@ai_and_law · Post #142 · 19.10.2023 г., 07:04

European Data Protection Supervisor Weighs In on AI Liability Rules Hello, everyone! The European Data Protection Supervisor (EDPS) provided valuable insights into the European Commission's two proposals, addressing liability rules for artificial intelligence products. These proposals focus on establishing liability for AI developers producing "defective products" and defining civil liability regulations for individuals negatively affected by AI systems. The EDPS presented several key recommendations. Notably, they emphasized the need for uniform protection levels, ensuring that individuals harmed by defective AI systems employed by EU institutions receive the same protection as those impacted by a private entity's use of such systems. These recommendations highlight the ongoing efforts to shape comprehensive AI liability frameworks in the European Union, aiming to balance innovation and safeguard individual rights. #AIandLaw#EDPS#AILiability#EURegulations

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

AI & Law

@ai_and_law · Post #55 · 13.07.2023 г., 11:20

Spain takes the lead inshaping EU's AI regulations Spain has assumed the rotating presidency of the EU Council of Ministers and is gearing up to make a significant impact on the future of artificial intelligence regulations in the European Union. As part of their digital priorities, Spain aims to reach a political agreement on the AI Act. In preparation for upcoming negotiations with the EU Council, Parliament, and Commission, Spain has shared its position on key aspects of the Act: 1️⃣ Defining AI: Spain is considering different options, including sticking with the Council's text, aligning with the Parliament's position, or awaiting the OECD's (Organisation for Economic Co-operation and Development) guidance. 2️⃣ Classification of High-Risk Applications: Spain is exploring various possibilities, such as adopting the Parliament's version without the notification of competent authorities, or refining it with binding self-assessment criteria for AI providers. 3️⃣ Addressing Critical Concepts: Spain is examining whether the AI Act is the appropriate framework to address concepts like democracy, the rule of law, and sustainability. 4️⃣ Clarity in Terminology: Spain is assessing the potential introduction of the term 'deployer' to minimize confusion and ensure clear roles and responsibilities within the AI ecosystem. These discussions will inform the trilogue negotiations scheduled for 18 July, where representatives from the Council, Parliament, and Commission will work towards a consensus on the AI Act. #SpainPresidency#AIAgenda#EURegulations#AIAct#AIRegulations#EUCouncil#EUCommission#EUParliament#Trilogue