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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

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

Пребарај: #secureai

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

@ai_and_law · Post #299 · 03.05.2024 г., 07:04

USA: New Bill Targets AI Security with Breach Tracking and Counter-AI Measures Senators Warner and Tillis have introduced the Secure Artificial Intelligence Act, aiming to bolster security measures surrounding AI systems. The bill proposes an AI Security Center within the National Security Agency (NSA) to manage a database recording all AI security breaches, including close calls ("near-misses"). The legislation establishes a dedicated unit within the NSA to lead research on "counter-AI" techniques. This includes methods to identify and prevent manipulation of AI systems, such as: ✅Data Poisoning: Malicious insertion of code into training data to skew an AI model's output. ✅Evasion Attacks: Altering data used by AI models to intentionally confuse them. ✅Privacy-Based Attacks: Exploiting vulnerabilities in AI systems to compromise user privacy. ✅Abuse Attacks: Misusing AI models for malicious purposes. The Secure Artificial Intelligence Act will undergo committee review before potential consideration by the full Senate. #SecureAI

Hashtags

AI & Law

@ai_and_law · Post #35 · 21.06.2023 г., 07:04

£54 million boost to develop secure and trustworthy AI research The UK government has announced a significant investment of £54 million to support the development of secure and trustworthy AI. The funding will be allocated to various projects and initiatives focused on enhancing the security and trustworthiness of AI systems. This includes advancing research on AI algorithms, data privacy, and cybersecurity measures. The aim is to address critical challenges such as algorithmic bias, data protection, and ethical considerations in AI development and deployment. #AIresearch#SecureAI#TrustworthyAI#UKgovernment#Innovation#EthicalAI#DataPrivacy#Cybersecurity