Advertisement
pszemraj

semantic search for lecture info example

Aug 14th, 2022
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.70 KB | Software | 0 0
  1.  
  2. (misc) C:\Users\peter\code-dev-22\one-off-scripts>python run_semantic_search.py -n 10 -q "will this be on the exam?"
  3. C:\Users\peter\code-dev-22\one-off-scripts\run_semantic_search.py:53: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_new.cpp:204.)
  4. corpus_embeddings = torch.FloatTensor(_data)
  5. Batches: 100%|████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 54.59it/s]
  6. Results for query: will this be on the exam?
  7. [{'Rank': 1,
  8. 'Score (0-1)': 0.4468,
  9. 'doc_dir': 'course info',
  10. 'doc_name': 'OCR_AMS_exam_information_',
  11. 'doc_relative_loc': 0.0,
  12. 'doc_text': 'applied multivariate statistics exam information, spring '
  13. 'semester 2022 fabio sigrist general information the exam is a '
  14. 'closed book exam you may use a pocket calculator without '
  15. 'communication abilities. the exam lasts 120 minutes. the exam '
  16. 'consists of multiple choice questions : exam relevant is '
  17. 'everything that was covered in the course, exercises, and the '
  18. 'corresponding handouts. a list of topic that are excluded can '
  19. 'be found below. programing skills in the r language will not be '
  20. 'tested in the exam _ however ; you have to be able to know what '
  21. 'the r functions used in the course do as well as correctly '
  22. 'interpret r output and draw the correct conclusions from it. '
  23. 'topics which are not exam relevant kernel pca t - sne : the '
  24. 'formulas for the similarities in the t - sne algorithm fisher s '
  25. 'discriminant analysis : using more than one discriminant vector '
  26. 'decision theory for classification repeated measures : the '
  27. 'choice between random effects or fixed effects sample questions '
  28. 'a data point that is not an outlier in a two - dimensional '
  29. 'subspace can be an outlier in higher dimensions. yes no? ( yes '
  30. ') the p - value in the chi - squared test of independence for '
  31. 'two categorical variables is interpreted as the probability '
  32. 'that there is no dependence. yes no? ( no ) let',
  33. 'id_within_doc': 0},
  34. {'Rank': 2,
  35. 'Score (0-1)': 0.4382,
  36. 'doc_dir': 'lecture-transcriptions',
  37. 'doc_name': 'SC_lecture_3_v_2_c_transcription_3_GT_failed',
  38. 'doc_relative_loc': 97.959,
  39. 'doc_text': 'next week, and hopefully, if we do an exam preparation towards '
  40. 'the end of the semester, we will have a better understanding '
  41. 'slowly, and this is how it birds. for all of us, it does. so if '
  42. 'we conclude here, thank you very much for your attention. when '
  43. 'seeing each other again in a week from now, nearby nobody has a '
  44. 'good afternoon or a good evening, and until next week nobody '
  45. 'has a degree a.',
  46. 'id_within_doc': 48},
  47. {'Rank': 3,
  48. 'Score (0-1)': 0.4267,
  49. 'doc_dir': 'exercise-session-transcriptions',
  50. 'doc_name': 'SC_exercise_class_1_recording',
  51. 'doc_relative_loc': 7.692,
  52. 'doc_text': "i'm going to go through some of this code. yes, the solutions "
  53. "are so ; you can submit them if you want. we don't grade for "
  54. "this class if, for some people, it's useful to submit because "
  55. 'you then have to produce everything right, and it will open '
  56. 'where you submit. it will locate it and not provide detailed '
  57. 'feedback, but it will have a lock on whether it looks '
  58. 'compatible with solutions. the idea is that an old student who '
  59. 'claims credit for the course submits the exercises. for those, '
  60. 'it will have more detailed work ; they need to be sold '
  61. "relatively well. if you're an old student and the parliament "
  62. 'gives you some easy credits for this, then you need to submit '
  63. "them. otherwise, it's not compulsory. don't remove anything "
  64. 'away from your exam results or anything like this. so this is '
  65. "not part of the grade, but you can submit it if it's good for "
  66. 'you, right? if it makes you do more clean work on this and is '
  67. 'the course, i think you can feel free to see it. okay, good, go '
  68. "outdoor one second. okay, so this is series one, right? i'm "
  69. "going to flick between the questions and the coat i'm going to "
  70. 'use',
  71. 'id_within_doc': 4},
  72. {'Rank': 4,
  73. 'Score (0-1)': 0.3873,
  74. 'doc_dir': 'lecture-transcriptions',
  75. 'doc_name': 'SC_lecture_12_v_2_c_transcription_14_GT',
  76. 'doc_relative_loc': 97.143,
  77. 'doc_text': "it's just for your convenience, not required to calculate up "
  78. 'values. sometimes, a more advanced calculator can store '
  79. 'immediate, intermediate results and might get them back easier '
  80. 'that sense. it might be more convenient for years until '
  81. 'yesterday, but apart from this, the calculator does not need '
  82. 'special statistical functions. other questions this of the '
  83. 'module form in case further questions come to your mind later '
  84. "on because got information rats would come out handles or don't "
  85. "have any more information you know more's just to repeat. the "
  86. 'zumadian said the stun has asked when the exam date will be '
  87. "fixed, and he says that it's going to be at the end of this "
  88. 'week, and you know more than me, so to my knowledge is not yet '
  89. 'determined. i think we will all be informed at the same time '
  90. 'cannot have more information than you, so if there are no more '
  91. 'questions, we will close this course now. thank you very much '
  92. 'for your attention ; and hope you have learned something and '
  93. 'wish you good luck with the exam. for the exam preparation, '
  94. 'hopefully, you will all have some holiday after the exam. '
  95. 'thanks for your attention. goodbye and take care of it.',
  96. 'id_within_doc': 34},
  97. {'Rank': 5,
  98. 'Score (0-1)': 0.3872,
  99. 'doc_dir': 'lecture-transcriptions',
  100. 'doc_name': 'SC_lecture_1_v_2_c_transcription_1_GT',
  101. 'doc_relative_loc': 9.302,
  102. 'doc_text': 'submit them as the indicated deadlines to the assistant. '
  103. 'whether you are an old student who needs to take and examine '
  104. 'and get it great or not, it can not know because there are six '
  105. 'or more different programs. every program has different '
  106. 'regulations, so you must inquire about this yourself. i just '
  107. 'know how it works here for the maths department. here the '
  108. "students don't need to take exams, and then they are not "
  109. 'required to obtain a grade. still, every program handles this '
  110. 'differently, so in case you need to take the exam in particular '
  111. 'in case you need to obtain a grade. your register as regular '
  112. 'students do otherwise suggest of me the exercise us and you '
  113. 'will see at the beginning of every chapter and have this '
  114. 'overview, so that does not get lost in the journal of methods '
  115. "that we are going to see. so you see here also that's a nice "
  116. "sorbet if all the matches we'll cover in this course. how "
  117. "should i say? it's not a course where we start art today, and "
  118. "everything builds up. methanol method, and it's all connected. "
  119. 'you will see a collection of different tools with different '
  120. "applications. they are related, obviously, but it's no building "
  121. 'up of it. so it',
  122. 'id_within_doc': 4},
  123. {'Rank': 7,
  124. 'Score (0-1)': 0.374,
  125. 'doc_dir': 'exercise-session-transcriptions',
  126. 'doc_name': 'SC_exercise_class_3_recording',
  127. 'doc_relative_loc': 34.848,
  128. 'doc_text': "is also beneficial. it's always a good tool to start with. "
  129. "still, if the prince this pal components don't explain first "
  130. "couples don't explain a lot of the variants, then you need a "
  131. 'tool that can recognize more complex patterns in the data, and '
  132. "testing is a perfect tool for doing this or so that's about. "
  133. "that's a question there could, so i think the question for "
  134. "discussion is a bit techy. ical i don't know if you had a "
  135. 'chance to try the questions. would it be interesting for you '
  136. 'guys for me to talk about the solution to questions for some '
  137. "nods and some uncertainties? it's beyond my math horizon, to be "
  138. 'honest., only it will do it. maybe i will try what i want. '
  139. "it'll do. the question. i might overrun eleven a bit, but i "
  140. 'want to encourage you to try because these things monthly care. '
  141. 'i agree hundred percent with this. but i would not say that if '
  142. 'you have done some level of mathematics right and know the '
  143. "basics of linear algebra and follow the definitions, don't "
  144. 'think beyond your level because these are not very deep '
  145. "questions. very difficult. if i show you the solution now, i'll "
  146. 'show you that the solution is not that complicated',
  147. 'id_within_doc': 23},
  148. {'Rank': 8,
  149. 'Score (0-1)': 0.3542,
  150. 'doc_dir': 'lecture-transcriptions',
  151. 'doc_name': 'SC_lecture_801_v_2_c_transcription_10_GT',
  152. 'doc_relative_loc': 91.837,
  153. 'doc_text': 'general, the second one is the ability to close book exams. for '
  154. "open book exams, i'm not going to die in detail. have a look at "
  155. "this yourself afterward, when you have more time because we're "
  156. 'running out to littebit of time for making an example in full '
  157. 'detail, but we have written everything that is required here in '
  158. 'the common section as well. i suggest you have a look at this. '
  159. "it's beneficial for understanding how such a model work, are "
  160. 'interpreting factors in the particular so for instance to '
  161. 'students to hear students a just good in general and the '
  162. 'student sixty - six here is a student that is good in close '
  163. 'books exams and bad in open book exams instead of going round '
  164. 'for one and score so we can nicely interpret this is one story '
  165. 'if this was a little bit quick in case you have questions about '
  166. 'the freedom to ask them for next time or during one of the '
  167. "exercise classes of its sales as well. we conclude today's "
  168. 'lecture with a comparison on pace because at first point they '
  169. 'might seem quite similar and years quite some similarity '
  170. 'between sea effects and asks to there so different so the '
  171. 'fraction mall here is given by this mole here x to data as land '
  172. 'attempts to effect plus, you where the use of the damage the '
  173. 'coerc',
  174. 'id_within_doc': 45},
  175. {'Rank': 10,
  176. 'Score (0-1)': 0.3434,
  177. 'doc_dir': 'exercise-session-transcriptions',
  178. 'doc_name': 'SC_exercise_class_2_recording',
  179. 'doc_relative_loc': 2.817,
  180. 'doc_text': 'going to go and i am hoping to get today in the second hour. '
  181. "i'm hoping to get as much participation from now guys as "
  182. "possible, so there are not that many of you in the room, so i'm "
  183. 'going to ask you questions, directors, so if there are no '
  184. 'volunteers, i will pick or person to try and answer the '
  185. "question. i think some people don't prefer this way, but it's "
  186. 'good to keep you engaged and feel freyou e to share any '
  187. 'thoughts. there are no wrong answers. there are no special '
  188. 'questions on mathematics, right? all queues times that you ask '
  189. "were completely valid. then all the answers are good. so i'm "
  190. 'first going to open the solution for series one, and so what '
  191. "i'in doing is i'm going to go after this, on this radio and "
  192. 'this has been published so this has been put on line onto the '
  193. 'meadow web page. so this is if you can find it on the mudo, '
  194. 'right? so we have this section in which we applaud the '
  195. 'materials related to exercise, and the solution to the serious '
  196. 'one has been put online so that you can find this pdf. you can '
  197. 'scroll through as i show different things and, as i mentioned, '
  198. 'some of',
  199. 'id_within_doc': 2},
  200. {'Rank': 11,
  201. 'Score (0-1)': 0.3375,
  202. 'doc_dir': 'exercise-session-transcriptions',
  203. 'doc_name': 'SC_exercise_class_5_recording',
  204. 'doc_relative_loc': 0.0,
  205. 'doc_text': 'source : sc _ exercise _ class _ 6 _ recording _ drago _ ple _ '
  206. 'c _ kos _ personal _ meeting _ room _ t _ 56 _ w _ zw _ 4 _ eu '
  207. '_ dl _ icu _ yy _ lg _ 4 _ ao _ qc _ yz _ ck _ 3 _ ie _ mk _ 0 '
  208. '_ transcription _ 5. txt welcome to exercise, also known as the '
  209. 'last exercise class today. the format will be slightly '
  210. "different, so i'm going to talk about solutions to series five "
  211. "; then i was going to talk about hints for series six, and i'm "
  212. "planning to finish by eleven thirty with no break if that's "
  213. 'okay. and then, if you have questions because someone asks, if '
  214. 'you can ask questions if you have any questions regarding any '
  215. 'of the material or anything from the course or general '
  216. "questions about anything else, i'm happy to answer. so i think "
  217. "that's the plan for it today. good. let's start with series "
  218. "five. some of you guys'are candidates and have done a good job. "
  219. "she's nice. okay, so the first question on series five was "
  220. 'comparing a principal component and factor analysis, right? so '
  221. 'we have spoken about this debate,',
  222. 'id_within_doc': 0},
  223. {'Rank': 14,
  224. 'Score (0-1)': 0.3316,
  225. 'doc_dir': 'lecture-transcriptions',
  226. 'doc_name': 'SC_lecture_3_v_2_c_transcription_3_GT',
  227. 'doc_relative_loc': 97.959,
  228. 'doc_text': 'seems not to be the case. i suggest you review this for next '
  229. 'week. again, pace is something you need to review a few times '
  230. "to understand fully. so have a look at this. you probably don't "
  231. "worry if you don't understand or even look at it again. but we "
  232. 'will have a look at it again next week, and hopefully, if we do '
  233. 'an exam preparation towards the end of the semester, we will '
  234. 'have a better understanding slowly, and this is how it birds. '
  235. 'for all of us, it does. so if we conclude here, thank you very '
  236. 'much for your attention. when seeing each other again a week '
  237. 'from now nearby, nobody has a good afternoon or evening, and '
  238. 'until next week nobody has a degree a.',
  239. 'id_within_doc': 48}]
  240. Search took 0.16 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement