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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #aitraining

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

@ai_and_law · Post #569 · 14.05.2025 г., 07:04

🇬🇧UK Artists Demand AI Transparency in Copyright Use More than 400 British artists — including Elton John, Dua Lipa, Coldplay, and Paul McCartney — have signed an open letter urging Prime Minister Keir Starmer to support legislation that would mandate transparency in the use of copyrighted materials for AI training. The letter emphasizes that creative copyright is not just a legal tool but “the lifeblood of the creative industries,” underpinning both moral ownership and economic sustainability for millions. #AI#Copyright#AITraining

AI & Law

@ai_and_law · Post #443 · 14.11.2024 г., 08:04

Copyright Claims on AI Training Dismissed: A Case of Harm and Fair Use A recent New York court decision has set a notable precedent in copyright disputes involving AI training. Judge Colleen McMahon dismissed a lawsuit against OpenAI from news outlets Raw Story and AlterNet, which alleged the unauthorized use of their content to train ChatGPT. The case was dismissed on the grounds that the plaintiffs could not sufficiently demonstrate harm. However, Judge McMahon allowed room for an amended complaint, though she expressed doubt over whether the outlets could establish a recognizable injury under current law. OpenAI maintains that their model training practices align with fair use principles, as they rely on publicly accessible data and established legal precedents. Raw Story and AlterNet are evaluating options for amendment, emphasizing their confidence in addressing the court's concerns. The decision brings to light complex questions on fair use and copyright harm, particularly as AI tools continue to evolve and reshape content creation. #Copyright#AITraining#FairUse#AIRegulation

Crypto M - Crypto News

@CryptoM · Post #65290 · 12.04.2026 г., 14:54

🚀 AI TRENDS | Moore Threads Completes Rapid Adaptation of MTT S5000 GPU for MiniMax M2.7 Moore Threads has announced the successful completion of the Day-0 rapid adaptation of its flagship AI training and inference all-in-one GPU, the MTT S5000, for the new generation large model, MiniMax M2.7. According to Odaily, this achievement further demonstrates the capability of domestically produced full-feature GPUs to quickly respond to and support cutting-edge AI models. #MooreThreads#MTTS5000#AItraining#GPU#MiniMaxM2.7 #AImodels#domesticGPU

EdgeMarket.AI 📣

@edgemarketai · Post #8086 · 31.03.2026 г., 11:54

The next layer of EdgeMarket is live. We’re introducing community validation for real world events feeding verified truth directly into AI systems. Every validation strengthens the network. Every correct signal earns rewards. ⚡ Validate events 🧠. Train AI with real data 💰 Earn $BET This is how decentralised intelligence is built. Signal Truth. Earn $BET Click Here ⬇️ To Start https://edgemarket.ai/bnb/validate-results #EdgeMarket#AI#Web3#Crypto#BET #Airdrop#EarnCrypto#SignalTruth#Validation #Decentralization#AITraining#Blockchain #CommunityDriven#OnChain#DePIN