Repository navigation
Expand file tree
/
Copy pathreset_training_data.ps1
More file actions
44 lines (36 loc) · 1.7 KB
/
Copy pathreset_training_data.ps1
File metadata and controls
44 lines (36 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Training Data Reset Script
# Bu script training_data.csv ve sentiment_model.zip dosyalarını yedekler ve siler
Write-Host "Training Data Reset Script" -ForegroundColor Green
Write-Host "========================" -ForegroundColor Green
Write-Host ""
# Yedek klasörü oluştur
$backupDir = "backup_$(Get-Date -Format 'yyyyMMdd_HHmmss')"
New-Item -ItemType Directory -Path $backupDir -Force | Out-Null
Write-Host "✅ Yedek klasörü oluşturuldu: $backupDir" -ForegroundColor Cyan
# Yedekle
if (Test-Path "training_data.csv") {
Copy-Item "training_data.csv" "$backupDir/training_data.csv"
Write-Host "✅ training_data.csv yedeklendi" -ForegroundColor Cyan
}
if (Test-Path "sentiment_model.zip") {
Copy-Item "sentiment_model.zip" "$backupDir/sentiment_model.zip"
Write-Host "✅ sentiment_model.zip yedeklendi" -ForegroundColor Cyan
}
# Sil
if (Test-Path "training_data.csv") {
Remove-Item "training_data.csv" -Force
Write-Host "🗑️ training_data.csv silindi" -ForegroundColor Yellow
}
if (Test-Path "sentiment_model.zip") {
Remove-Item "sentiment_model.zip" -Force
Write-Host "🗑️ sentiment_model.zip silindi" -ForegroundColor Yellow
}
Write-Host ""
Write-Host "✅ İşlem tamamlandı!" -ForegroundColor Green
Write-Host ""
Write-Host "📝 Notlar:" -ForegroundColor Cyan
Write-Host " - Yedekler '$backupDir' klasöründe" -ForegroundColor Cyan
Write-Host " - Bir sonraki analizde model temel verilerle eğitilecek (~30-35 örnek)" -ForegroundColor Cyan
Write-Host " - Yeni videolardan gelen yorumlar otomatik olarak eğitim verisine eklenecek" -ForegroundColor Cyan
Write-Host " - Sistem artık sadece ana yorumları çekiyor (yanıtlar yok)" -ForegroundColor Cyan
Write-Host ""