В докладе мы рассмотрим создание переносимого дистрибутива Python для любых нужд и операционных систем (Windows & Linux). Познакомимся с существующими и альтернативными решениями. Сравним их достоинства и недостатки.
Докладчик: Григорий Кареев (Odin)
Видео: https://www.youtube.com/watch?v=fvBJG_IKvaQ
Python AST / Николай Карелин / VPI Development Center [Python Meetup 27.03.15]Python Meetup
Python AST: между исходным текстом и байт-кодом / Николай Карелин / Системный архитектор VPI Development Center
Николай познакомит слушателей с деталями устройства Python AST и, в частности, расскажет некоторые интересные факты о работе диалекта Hy.
Python Meetup - встречи минского сообщества любителей языка программирования Python.
Присоединяйся к нам!
Мы в twitter: https://twitter.com/pythonminsk
Мы на youtube: http://www.youtube.com/pythonMinsk
Мы на slideshare: http://www.slideshare.net/MinskPythonMeetup
The student expresses their love for Amur tigers since childhood, though they were initially scared to feed them. They describe Amur tigers as fluffy, cute but rare animals that are endangered. The student wants to help increase the population of Amur tigers in the wild, which currently number only around eight individuals globally.
В докладе мы рассмотрим создание переносимого дистрибутива Python для любых нужд и операционных систем (Windows & Linux). Познакомимся с существующими и альтернативными решениями. Сравним их достоинства и недостатки.
Докладчик: Григорий Кареев (Odin)
Видео: https://www.youtube.com/watch?v=fvBJG_IKvaQ
Python AST / Николай Карелин / VPI Development Center [Python Meetup 27.03.15]Python Meetup
Python AST: между исходным текстом и байт-кодом / Николай Карелин / Системный архитектор VPI Development Center
Николай познакомит слушателей с деталями устройства Python AST и, в частности, расскажет некоторые интересные факты о работе диалекта Hy.
Python Meetup - встречи минского сообщества любителей языка программирования Python.
Присоединяйся к нам!
Мы в twitter: https://twitter.com/pythonminsk
Мы на youtube: http://www.youtube.com/pythonMinsk
Мы на slideshare: http://www.slideshare.net/MinskPythonMeetup
The student expresses their love for Amur tigers since childhood, though they were initially scared to feed them. They describe Amur tigers as fluffy, cute but rare animals that are endangered. The student wants to help increase the population of Amur tigers in the wild, which currently number only around eight individuals globally.
Farthest Neighbor Approach for Finding Initial Centroids in K- MeansWaqas Tariq
Text document clustering is gaining popularity in the knowledge discovery field for effectively navigating, browsing and organizing large amounts of textual information into a small number of meaningful clusters. Text mining is a semi-automated process of extracting knowledge from voluminous unstructured data. A widely studied data mining problem in the text domain is clustering. Clustering is an unsupervised learning method that aims to find groups of similar objects in the data with respect to some predefined criterion. In this work we propose a variant method for finding initial centroids. The initial centroids are chosen by using farthest neighbors. For the partitioning based clustering algorithms traditionally the initial centroids are chosen randomly but in the proposed method the initial centroids are chosen by using farthest neighbors. The accuracy of the clusters and efficiency of the partition based clustering algorithms depend on the initial centroids chosen. In the experiment, kmeans algorithm is applied and the initial centroids for kmeans are chosen by using farthest neighbors. Our experimental results shows the accuracy of the clusters and efficiency of the kmeans algorithm is improved compared to the traditional way of choosing initial centroids.
This document describes the design, prototyping, testing, and results of a deployable articulating solar array for CubeSats. The key requirements were to remain stowed during launch and deploy reliably while transmitting power through continuous 360 degree rotation within a volume of 6x10x10 cm and weight of 798 grams, and surviving launch loads and a shock of deployment not exceeding 100g. A prototype was built and tested through vibration, motion analysis, and acceleration measurements to verify all requirements were met, including deploying the array and allowing power transmission during rotation.
This document summarizes the rules and questions from a Harry Potter trivia quiz game with 17 multiple choice questions about characters, objects, and events from the Harry Potter book series. It provides the questions, possible answer choices, and reveals the correct answers. The summary focuses on outlining the format and content of the trivia game being documented.
Este documento proporciona instrucciones para practicar la creación de una página web básica en HTML. Explica cómo abrir el bloc de notas para escribir códigos HTML, guardar el archivo con extensión .html, corregir errores, transferir el archivo a un hosting a través de FileZilla, y visualizar la página web creada en un dominio.
Link to code and webpage:
http://shashankg7.github.io/word2graph2vec/
Link to slides:
http://www.slideshare.net/nprateek/predictive-text-embedding-using-line
Link to report:
https://www.overleaf.com/read/sqhkzfvjhfkp
Mars CubeSat Telecom Relay Constellation_JPL FinalRohan Deshmukh
The document proposes a 4-CubeSat constellation in Mars orbit to augment telecommunications relay capabilities for surface assets. The CubeSats would be deployed from a 2022 Mars Telecom Orbiter into a 350 km circular orbit with 70 degree inclination. Each 6U CubeSat would carry an IRIS transponder, Ka-band reflectarray antenna, and UHF antennas to provide direct-to/from-Earth relay and cross-link relay with orbiters. Analysis showed the design could meet power and propulsion requirements to operate for two Mars years.
This document discusses the progress of virtual teams in Albania. It provides context on virtual teams and how they differ from traditional teams in their reliance on technology for communication across distances. The document then examines the use of virtual teams in Albania, noting the growing infrastructure and technology usage that enables virtual collaboration. It highlights some virtual team examples in Albanian government and academic projects.
This document contains 10 multiple choice questions about various topics related to space exploration and science fiction. It includes questions about fictional elements from Star Trek, real space missions and astronauts, astronomical phenomena, and concepts from astrophysics. The questions range from identifying key details to matching concepts with their explanations.
Farthest Neighbor Approach for Finding Initial Centroids in K- MeansWaqas Tariq
Text document clustering is gaining popularity in the knowledge discovery field for effectively navigating, browsing and organizing large amounts of textual information into a small number of meaningful clusters. Text mining is a semi-automated process of extracting knowledge from voluminous unstructured data. A widely studied data mining problem in the text domain is clustering. Clustering is an unsupervised learning method that aims to find groups of similar objects in the data with respect to some predefined criterion. In this work we propose a variant method for finding initial centroids. The initial centroids are chosen by using farthest neighbors. For the partitioning based clustering algorithms traditionally the initial centroids are chosen randomly but in the proposed method the initial centroids are chosen by using farthest neighbors. The accuracy of the clusters and efficiency of the partition based clustering algorithms depend on the initial centroids chosen. In the experiment, kmeans algorithm is applied and the initial centroids for kmeans are chosen by using farthest neighbors. Our experimental results shows the accuracy of the clusters and efficiency of the kmeans algorithm is improved compared to the traditional way of choosing initial centroids.
This document describes the design, prototyping, testing, and results of a deployable articulating solar array for CubeSats. The key requirements were to remain stowed during launch and deploy reliably while transmitting power through continuous 360 degree rotation within a volume of 6x10x10 cm and weight of 798 grams, and surviving launch loads and a shock of deployment not exceeding 100g. A prototype was built and tested through vibration, motion analysis, and acceleration measurements to verify all requirements were met, including deploying the array and allowing power transmission during rotation.
This document summarizes the rules and questions from a Harry Potter trivia quiz game with 17 multiple choice questions about characters, objects, and events from the Harry Potter book series. It provides the questions, possible answer choices, and reveals the correct answers. The summary focuses on outlining the format and content of the trivia game being documented.
Este documento proporciona instrucciones para practicar la creación de una página web básica en HTML. Explica cómo abrir el bloc de notas para escribir códigos HTML, guardar el archivo con extensión .html, corregir errores, transferir el archivo a un hosting a través de FileZilla, y visualizar la página web creada en un dominio.
Link to code and webpage:
http://shashankg7.github.io/word2graph2vec/
Link to slides:
http://www.slideshare.net/nprateek/predictive-text-embedding-using-line
Link to report:
https://www.overleaf.com/read/sqhkzfvjhfkp
Mars CubeSat Telecom Relay Constellation_JPL FinalRohan Deshmukh
The document proposes a 4-CubeSat constellation in Mars orbit to augment telecommunications relay capabilities for surface assets. The CubeSats would be deployed from a 2022 Mars Telecom Orbiter into a 350 km circular orbit with 70 degree inclination. Each 6U CubeSat would carry an IRIS transponder, Ka-band reflectarray antenna, and UHF antennas to provide direct-to/from-Earth relay and cross-link relay with orbiters. Analysis showed the design could meet power and propulsion requirements to operate for two Mars years.
This document discusses the progress of virtual teams in Albania. It provides context on virtual teams and how they differ from traditional teams in their reliance on technology for communication across distances. The document then examines the use of virtual teams in Albania, noting the growing infrastructure and technology usage that enables virtual collaboration. It highlights some virtual team examples in Albanian government and academic projects.
This document contains 10 multiple choice questions about various topics related to space exploration and science fiction. It includes questions about fictional elements from Star Trek, real space missions and astronauts, astronomical phenomena, and concepts from astrophysics. The questions range from identifying key details to matching concepts with their explanations.
1. ООП в Python
Иванов Сергей (317)
Практикум на ЭВМ
07.11.2016
Иванов Сергей (317) ООП в Python
2. Питон любит ООП
Python изначально задумывался
объектно-ориентированным языком
Всё есть объект (first-class object), а
значит, со всем можно работать по
одинаковым принципам
Иванов Сергей (317) ООП в Python
3. Питон любит лентяйничать
class SomeClass:
pass
С этим уже можно работать:
a = SomeClass()
b = SomeClass()
c = a #just reference
>>> a == b
False
>>> a == c
True
(!) Конструктор копирования за нас не сделают.
Пользуйтесь модулем copy
Иванов Сергей (317) ООП в Python
4. Питон любит атрибуты
Объектом являются как экземпляры класса, так и сам класс:
A.field = 179
>>> a.field
179
Кстати, у функций тоже есть атрибуты!
def f():
return 179
f.spanish_inquisition = "unexpected?"
Иванов Сергей (317) ООП в Python
5. Питон любит словари
Классы и экземпяры классов по внутреннему устройству похожи на
словари:
class Student:
pass
s = Student()
s.name = 'Sergey'
Student.fears = ['exams']
>>> Student.__dict__
mappingproxy({..., 'fears': ['exams']})
>>> s.__dict__
{'name': 'Sergey'}
Иванов Сергей (317) ООП в Python
6. Питон любит крякать
Питон следует принципам "утиной типизации"(Duck Typing):
"If it looks like a duck, swims like a duck and quacks like a duck, then it
probably is a duck."
def test(duck):
duck.swim()
duck.quack()
return "It is a duck!"
>> test(Human())
"It is a duck!"
Иванов Сергей (317) ООП в Python
7. Питон любит инкапсуляцию
x public свободный доступ
_x protected предостережение пользователям (!) от ис-
пользования вне производных классов
__x private атрибут невидим вне класса
Но если очень попросить, питон всё равно позволит:
class Student:
def __tellSecret(self):
print("I learn nothing")
Sergey = Student()
>>> Sergey._Student__tellSecret()
I learn nothing
Иванов Сергей (317) ООП в Python
8. Питон любит наследование
class CoolGuy:
pass
class Student:
def learn(self):
print("I am learning")
class Sergey(CoolGuy, Student):
pass
>>> S = Sergey()
>>> S.learn()
I am learning
Сначала питон пытается заставить учиться класс Sergey, потом -
CoolGuy, и только после этих двух досадных промахов - Student.
Иванов Сергей (317) ООП в Python
9. Питон любит магию
__init__(self, [...) конструктор - но он вызывается только когда
экземпляр объекта уже создан
__new__(cls, [...) процесс создания экземпляра (так называе-
мый классовый метод)
__del__(self) деструктор - но помните об автоматическом
сборщике мусора!
Всё это так называемые "магические методы"(magic methods)
Иванов Сергей (317) ООП в Python
10. Питон любит переопределять операторы!.. при
помощи магии
Арифметические операторы
Операторы сравнения
Унарные операции и функции (например, округление)
Операторы присваивания
Операторы преобразования типов
Операторы представления:
__str__(self) как выглядит объект в строковом представле-
нии
__hash__(self) целочисленный хэш объектов класса
__bool__(self) тру ли объект или фолс
И много чего ещё
Иванов Сергей (317) ООП в Python