March 2018
Intermediate to advanced
320 pages
7h 53m
English
Before proceeding, depending on your system, you may need to clean up the memory a bit and free space for machine learning models from previously used data structures. This is done using gc.collect, after deleting any past variables not required anymore, and then checking the available memory by exact reporting from the psutil.virtualmemory function:
import gcimport psutildel([tfv_q1, tfv_q2, tfv, q1q2, question1_vectors, question2_vectors, svd_q1, svd_q2, q1_tfidf, q2_tfidf])del([w2v_q1, w2v_q2])del([model])gc.collect()psutil.virtual_memory()
At this point, we simply recap the different features created up to now, and their meaning in terms of generated features:
Read now
Unlock full access