Commit c8b69bc
authored
Ekir 569 stop using weights in classification (#221)
* EKIR-569 Remake WorkClassifier constructor
* EKIR-569 Remake the add() -> prepare_classification()
Rebuilt the whole function due to ditching weights.
WorkClassifier attributes are modified based on the type of subject.
Added some smaller functions to do the actual modifications.
* EKIR-569 Update classify_work()
* EKIR-569 Remove weights from _fiction()
* EKIR-569 Remake the logic for _audience()
* EKIR-569 Remove weights from _genres()
* EKIR-569 Update _target_age()
* EKIR-569 Update docs
* EKIR-569 Remove weights
* EKIR-569 Rename function
* EKIR-569 Rename function
* EKIR-569 prepare not add
* EKIR-569 Remove constants
* EKIR-569 Remove irrelevant classifiers
* EKIR-569 Remove weight
* EKIR-569 Random changes
* EKIR-569 Remove weights
* EKIR-569 Remove weight from SubjectData
* EKIR-569 Remove weights
* EKIR-569 Update test
* EKIR-569 Remove more weight references
* EKIR-569 Remove InterestLevelClassifier
* EKIR-569 Lint
* EKIR-569 Remove InterestLevelClassifier
* EKIR-569 Document classification
* EKIR-569 Adjust target age
* EKIR-569 Set fiction=True as default
* EKIR-569 Adjust audience1 parent e93621c commit c8b69bc
File tree
53 files changed
+1329
-5051
lines changed- api
- admin/controller
- metadata
- core
- classifier
- feed/annotator
- model
- resources
- docs
- tests
- api
- admin/controller
- feed
- metadata
- core
- classifiers
- models
- files/odl
- fixtures
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
53 files changed
+1329
-5051
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
| |||
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
448 | | - | |
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
| |||
500 | 498 | | |
501 | 499 | | |
502 | 500 | | |
503 | | - | |
504 | 501 | | |
505 | 502 | | |
506 | 503 | | |
| |||
542 | 539 | | |
543 | 540 | | |
544 | 541 | | |
545 | | - | |
546 | 542 | | |
547 | 543 | | |
548 | 544 | | |
| |||
561 | 557 | | |
562 | 558 | | |
563 | 559 | | |
564 | | - | |
565 | 560 | | |
566 | 561 | | |
567 | 562 | | |
| |||
592 | 587 | | |
593 | 588 | | |
594 | 589 | | |
595 | | - | |
596 | 590 | | |
597 | 591 | | |
598 | 592 | | |
| |||
601 | 595 | | |
602 | 596 | | |
603 | 597 | | |
604 | | - | |
605 | 598 | | |
606 | 599 | | |
607 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
1091 | 1090 | | |
1092 | 1091 | | |
1093 | 1092 | | |
1094 | | - | |
1095 | 1093 | | |
1096 | 1094 | | |
1097 | 1095 | | |
| |||
1108 | 1106 | | |
1109 | 1107 | | |
1110 | 1108 | | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | 1109 | | |
1120 | 1110 | | |
1121 | 1111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
703 | 702 | | |
704 | 703 | | |
705 | 704 | | |
706 | | - | |
707 | 705 | | |
708 | 706 | | |
709 | 707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
699 | 698 | | |
700 | 699 | | |
701 | 700 | | |
702 | | - | |
703 | 701 | | |
704 | 702 | | |
705 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | 421 | | |
423 | 422 | | |
424 | 423 | | |
| |||
446 | 445 | | |
447 | 446 | | |
448 | 447 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | 448 | | |
455 | 449 | | |
456 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
2446 | 2445 | | |
2447 | 2446 | | |
2448 | 2447 | | |
2449 | | - | |
2450 | | - | |
2451 | | - | |
2452 | | - | |
2453 | 2448 | | |
2454 | 2449 | | |
2455 | 2450 | | |
| |||
2488 | 2483 | | |
2489 | 2484 | | |
2490 | 2485 | | |
2491 | | - | |
2492 | | - | |
2493 | | - | |
2494 | | - | |
2495 | | - | |
2496 | | - | |
2497 | | - | |
2498 | 2486 | | |
2499 | 2487 | | |
2500 | 2488 | | |
2501 | 2489 | | |
2502 | 2490 | | |
2503 | | - | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | 2491 | | |
2509 | 2492 | | |
2510 | 2493 | | |
| |||
2518 | 2501 | | |
2519 | 2502 | | |
2520 | 2503 | | |
2521 | | - | |
2522 | 2504 | | |
2523 | 2505 | | |
2524 | 2506 | | |
| |||
2543 | 2525 | | |
2544 | 2526 | | |
2545 | 2527 | | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | | - | |
2556 | | - | |
2557 | | - | |
2558 | | - | |
2559 | | - | |
2560 | | - | |
2561 | | - | |
2562 | | - | |
2563 | | - | |
2564 | | - | |
2565 | | - | |
2566 | | - | |
2567 | | - | |
2568 | | - | |
2569 | | - | |
2570 | 2528 | | |
2571 | 2529 | | |
2572 | 2530 | | |
| |||
0 commit comments